<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Silly GORM tricks, part III: SQL keywords as attributes</title>
	<atom:link href="http://kousenit.wordpress.com/2008/05/11/silly-gorm-tricks-part-iii-sql-keywords-as-attributes/feed/" rel="self" type="application/rss+xml" />
	<link>http://kousenit.wordpress.com/2008/05/11/silly-gorm-tricks-part-iii-sql-keywords-as-attributes/</link>
	<description>I teach this stuff.  I didn't say I could do it.</description>
	<pubDate>Sat, 19 Jul 2008 10:21:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
		<item>
		<title>By: Costa</title>
		<link>http://kousenit.wordpress.com/2008/05/11/silly-gorm-tricks-part-iii-sql-keywords-as-attributes/#comment-11995</link>
		<dc:creator>Costa</dc:creator>
		<pubDate>Mon, 26 May 2008 14:50:23 +0000</pubDate>
		<guid isPermaLink="false">http://kousenit.wordpress.com/?p=121#comment-11995</guid>
		<description>Thank you for this post! It helped me immensely.  Grails really shouldn't fail silently like this.</description>
		<content:encoded><![CDATA[<p>Thank you for this post! It helped me immensely.  Grails really shouldn&#8217;t fail silently like this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dion gillard</title>
		<link>http://kousenit.wordpress.com/2008/05/11/silly-gorm-tricks-part-iii-sql-keywords-as-attributes/#comment-11989</link>
		<dc:creator>dion gillard</dc:creator>
		<pubDate>Wed, 21 May 2008 23:31:25 +0000</pubDate>
		<guid isPermaLink="false">http://kousenit.wordpress.com/?p=121#comment-11989</guid>
		<description>I raised a JIRA for this when I had it...

http://jira.codehaus.org/browse/GRAILS-2898</description>
		<content:encoded><![CDATA[<p>I raised a JIRA for this when I had it&#8230;</p>
<p><a href="http://jira.codehaus.org/browse/GRAILS-2898" rel="nofollow">http://jira.codehaus.org/browse/GRAILS-2898</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kalyan Dasika</title>
		<link>http://kousenit.wordpress.com/2008/05/11/silly-gorm-tricks-part-iii-sql-keywords-as-attributes/#comment-11987</link>
		<dc:creator>Kalyan Dasika</dc:creator>
		<pubDate>Thu, 15 May 2008 00:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://kousenit.wordpress.com/?p=121#comment-11987</guid>
		<description>Thank you for posting with a detailed explanation. I will sure remember this.</description>
		<content:encoded><![CDATA[<p>Thank you for posting with a detailed explanation. I will sure remember this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Hartsock</title>
		<link>http://kousenit.wordpress.com/2008/05/11/silly-gorm-tricks-part-iii-sql-keywords-as-attributes/#comment-11984</link>
		<dc:creator>Shawn Hartsock</dc:creator>
		<pubDate>Wed, 14 May 2008 01:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://kousenit.wordpress.com/?p=121#comment-11984</guid>
		<description>BTW, Does this bug sound like the same issue:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2622</description>
		<content:encoded><![CDATA[<p>BTW, Does this bug sound like the same issue:<br />
<a href="http://opensource.atlassian.com/projects/hibernate/browse/HHH-2622" rel="nofollow">http://opensource.atlassian.com/projects/hibernate/browse/HHH-2622</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shawn Hartsock</title>
		<link>http://kousenit.wordpress.com/2008/05/11/silly-gorm-tricks-part-iii-sql-keywords-as-attributes/#comment-11983</link>
		<dc:creator>Shawn Hartsock</dc:creator>
		<pubDate>Wed, 14 May 2008 00:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://kousenit.wordpress.com/?p=121#comment-11983</guid>
		<description>I've run into these a couple of times myself. I noticed that MySQL has the ability to "escape" table column names and table names. That means you could use a reserved word for a column or table name provided you write it surrounded with `backquotes`  So it should be something that Hibernate does for us by selecting the database dialect. However, I haven't seen this setting... check this out:

http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html

... so it should be very doable to make the Hibernate/GORM MySQL dialect escape all table names and all column names automagically.

FYI: I ran into this problem the first time when I was doing some MythTV hacking with some straight C to MySQL code... someone should raise name escaping as a feature/enhancement to the Hibernate/GORM guys since this is happening below the Grails layer.

Just my two bits on the topic. You could see this as something people should just "know" about MySQL...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve run into these a couple of times myself. I noticed that MySQL has the ability to &#8220;escape&#8221; table column names and table names. That means you could use a reserved word for a column or table name provided you write it surrounded with `backquotes`  So it should be something that Hibernate does for us by selecting the database dialect. However, I haven&#8217;t seen this setting&#8230; check this out:</p>
<p><a href="http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html" rel="nofollow">http://dev.mysql.com/doc/refman/5.1/en/reserved-words.html</a></p>
<p>&#8230; so it should be very doable to make the Hibernate/GORM MySQL dialect escape all table names and all column names automagically.</p>
<p>FYI: I ran into this problem the first time when I was doing some MythTV hacking with some straight C to MySQL code&#8230; someone should raise name escaping as a feature/enhancement to the Hibernate/GORM guys since this is happening below the Grails layer.</p>
<p>Just my two bits on the topic. You could see this as something people should just &#8220;know&#8221; about MySQL&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan Jose</title>
		<link>http://kousenit.wordpress.com/2008/05/11/silly-gorm-tricks-part-iii-sql-keywords-as-attributes/#comment-11982</link>
		<dc:creator>Juan Jose</dc:creator>
		<pubDate>Tue, 13 May 2008 22:44:58 +0000</pubDate>
		<guid isPermaLink="false">http://kousenit.wordpress.com/?p=121#comment-11982</guid>
		<description>Hi,

the database vendor Mimer has a sql validator and a list of sql keywords:
http://developer.mimer.com/validator/index.htm</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>the database vendor Mimer has a sql validator and a list of sql keywords:<br />
<a href="http://developer.mimer.com/validator/index.htm" rel="nofollow">http://developer.mimer.com/validator/index.htm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guillaume Laforge</title>
		<link>http://kousenit.wordpress.com/2008/05/11/silly-gorm-tricks-part-iii-sql-keywords-as-attributes/#comment-11977</link>
		<dc:creator>Guillaume Laforge</dc:creator>
		<pubDate>Tue, 13 May 2008 13:11:06 +0000</pubDate>
		<guid isPermaLink="false">http://kousenit.wordpress.com/?p=121#comment-11977</guid>
		<description>There's a page on that topic on the Grails site:
http://grails.org/Reserved+Names

But I guess it needs to be expanded a little :-)</description>
		<content:encoded><![CDATA[<p>There&#8217;s a page on that topic on the Grails site:<br />
<a href="http://grails.org/Reserved+Names" rel="nofollow">http://grails.org/Reserved+Names</a></p>
<p>But I guess it needs to be expanded a little <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dierk König</title>
		<link>http://kousenit.wordpress.com/2008/05/11/silly-gorm-tricks-part-iii-sql-keywords-as-attributes/#comment-11965</link>
		<dc:creator>Dierk König</dc:creator>
		<pubDate>Mon, 12 May 2008 16:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://kousenit.wordpress.com/?p=121#comment-11965</guid>
		<description>true, true. I ran into similar errors (once when live coding on stage ;-)). I guess we should file JIRA  feature request for better error-messages at this point and ask the tool providers (IDEA, netbeans, and eclipse) to issue respective warnings.  Note that this applies to names of the domain class (i.e. table names) as well and the set of reserved names differ between sql dialects of the database vendor.</description>
		<content:encoded><![CDATA[<p>true, true. I ran into similar errors (once when live coding on stage ;-)). I guess we should file JIRA  feature request for better error-messages at this point and ask the tool providers (IDEA, netbeans, and eclipse) to issue respective warnings.  Note that this applies to names of the domain class (i.e. table names) as well and the set of reserved names differ between sql dialects of the database vendor.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
