> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Gavin King > Sent: Thursday, November 20, 2003 12:15 PM > To: Joshua Davis > Cc: 'hibernate-devel' > Subject: Re: [Hibernate] AST grammar for HQL > > I suggest we use a mock Queryable, so that we can test this stuff w/o > Hibernate. Its good TDD approach, I think.
Oh, maybe I misunderstood... do you mean something like Queryable? I was looking at the real Queryable, and it's failry large and has many dependencies. > > * Should I add SQL-99 functions to the grammar? > > Aaahhhh I think we should worry about that a bit later on, > personally. > Lets get the basics right first. We can evolve the grammar easily > enough, right? Right. Will do. I'm just in 'grammar mode' right now. > > Others have mentioned adding SQL-99 functions to the > grammar and using > > them to portably translate into the proper dialect. Since > some of the > > SQL-99 functions have their own (IMHO, weird and > unnecessary) syntax, > > they must be added to the grammar. For example: > > concatentate : "CONCATENATE" '(' expression ( '||' > expression )* ')' > > Yeah this is silly. I think we should just support "foo || bar", like > most databases. The string concatenation operator '||' is already in the grammar. :) > count(distinct foo) is also a wierd one. Yeah, SQL is kinda fubar, grammatically speaking. ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel