Is it a known issue?
$ cvs ci -m"added remaining ejbql functions for completeness"
EJBQLTest.java
Enter passphrase for key '/home/alex/.ssh/identity':
[EMAIL PROTECTED]'s password:
Checking in EJBQLTest.java;
/cvsroot/hibernate/Hibernate3/test/org/hibernate/test/hql/EJBQLTest.java
,v <-- EJBQLTe
I am still having issues with this test.
If I define concat template for HSQL as concat(?1 || ?2) the test
passes. But this template is wrong.
Unexpected token in statement [select * from Animal where description =
concat('1' || '2')]
java.sql.SQLException: Unexpected token in statement [select *
gt;> /max
> >>
> >> >
> >> >> -Original Message-
> >> >> From: [EMAIL PROTECTED]
> >> >> [mailto:[EMAIL PROTECTED] On
> >> Behalf Of Max
> >> >> Rydahl Andersen
> >> >> Sent: Wednesday, December
22 Dec 2004 06:40:21 -0600, Alexey Loubyansky
> <[EMAIL PROTECTED]>
> wrote:
>
> > In general we might define a function like func(a, b, c)
> and the order
> > of arguments might be different in different dialects. (I
> am not sure
> > we need this tho
;
> On Wed, 22 Dec 2004 06:10:57 -0600, Alexey Loubyansky
> <[EMAIL PROTECTED]>
> wrote:
>
> Looks nice.
>
> Stupid question again from me - any reason why you use ?1
> syntax and not just ? or :name here ?
> (Just to keep the syntaxes for placeholders down at
it is how it worked before.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Alexey Loubyansky
> Sent: Wednesday, December 22, 2004 12:39 PM
> To: Max Andersen; Hibernate development
> Subject: RE: [Hibernate] new template-bas
> > concat(?1 || ?2) is parsed not as one argument but three,
> since there
> > are three tokens, i.e. ?1, || and ?2.
>
> oh - afraid of sounding stupid, but shouldn't that be parsed as a
> functioncall(expression) ?
> where expression is (x op y) in this case ?
Yes, sorry, of course, it is par
> -Original Message-
> From: Max Rydahl Andersen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 22, 2004 11:23 AM
> To: Alexey Loubyansky; Hibernate development
> Subject: Re: [Hibernate] new template-based hql functions
>
> On Wed, 22 Dec 2004 04:20:13 -060
; [mailto:[EMAIL PROTECTED] On
> Behalf Of Max Rydahl Andersen
> Sent: Wednesday, December 22, 2004 11:14 AM
> To: Hibernate development
> Subject: Re: [Hibernate] new template-based hql functions
>
> On Wed, 22 Dec 2004 03:46:03 -0600, Alexey Loubyansky
> <[EMAIL PR
I am adding support for template-based functions as part of the EJBQL
issue. I.e. functions that have a strict syntax in HQL but different
syntaxes in different SQL dialects.
E.g. in HQL we write concat(p1, p2) which will be converted to (p1 ||
p2) for Oracle, concat(p1, p2) for MySql, (?1 + ?2) f
FYI, NOT IN was not supported in the AST-based HQL parser in beta
release.
Current testcases for '[NOT] IN' test HQL parsing but not SQL generation
which failed with an error.
This is fixed now.
---
SF email is sponsored by - The IT Product Guid
age-
> From: Joshua Davis [mailto:[EMAIL PROTECTED]
> Sent: Sunday, December 19, 2004 3:39 AM
> To: Joshua Davis
> Cc: Alexey Loubyansky; Hibernate development
> Subject: Re: [Hibernate] introductions of new keywords to ql
> (Welcome to parser land!)
>
> Okay, that worked so I
Hi Joshua,
I committed another hack in this area. Could you please look at it?
The problem is when I add an alternative to fromClass (in my case it's a
collection valued path declaration, i.e. 'IN(path) id') and in a query
after the first fromClass and comma there is another fromClass with
class
Also there are tokens that are used internally, i.e. not used in HQL
users writting statements.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Joshua Davis
> Sent: Wednesday, December 15, 2004 11:15 PM
> To: Max Andersen; Steve Ebersole; Hibern
Hi Joshua & Steve,
I started working on the EJBQL syntaxes that are not supported yet. I
will need to add some new keywords that might cause some existing tests
to fail. E.g. adding "object" causes the following test to fail
input: ->from org.hibernate.test.Bar bar where bar.object.id = ? and
bar
lectObject
: OBJECT^ OPEN! identifier CLOSE!
;
If I comment out selectObject in selectClause, the test passes.
Thanks.
> -Original Message-
> From: Joshua Davis [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 2:13 PM
> To: Alexey Loubyansky
> Cc: [EMAIL
ember 15, 2004 4:02 PM
> To: Alexey Loubyansky
> Cc: [EMAIL PROTECTED]
> Subject: RE: [Hibernate] introductions of new keywords to ql
>
> Aha... So you've introduced a new keyword, and also a new
> clause in the the select expression with the new keyword
> being the tok
Shouldn't classpath be fixed like
RCS file: /cvsroot/hibernate/Hibernate3/build.xml,v
retrieving revision 1.24
diff -r1.24 build.xml
561c561,562
<
---
>
>
Very low level of abstraction for now, i.e. setting parameters, reading
result sets, table creation using abstract data types.
What branch should I check out for this?
> -Original Message-
> From: Steve Ebersole
> Sent: Thursday, September 23, 2004 10:54 PM
> To: Alexe
Hello colleagues,
there are areas in JBoss that need persistence solutions. Right now each
area has its own more or less ugly solution (not because of developers'
skills but more because of JDBC portability issues, differences in
database data types, etc). We could use Hibernate. But Hibernate is
Thanks ;)
It is kind of exotic for a POJO-persistence-oriented application to map
a class to different tables and choose the table to modify by some
criteria at runtime. But the example with Maps shows the power and
flexibility added.
Gavin King wrote:
For those who didn't notice, Steve recen
21 matches
Mail list logo