![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, While adding support for Ingres in my database abstraction libraryhttp://www.jooq.org, I have encountered E_OP039F_BOOLFACT as documented here:http://docs.ingres.com/ingres/9.2/in...de/1283-errors... This error should be reported, so here I am. Here's how to reproduce it with Ingres Visual SQL 10.1.0 (E_SC0129 Ingres Release II 10.1.0 (a64.win/118). I can provide more Server Info upon request. Create this database schema:http://jooq.svn.sourceforge.net/view...rc/org/jooq/te... Fill in this data:http://jooq.svn.sourceforge.net/view...rc/org/jooq/te... Now this query fails: select * from t_author join t_book on ((t_author.id = t_book.author_id * * * * * * * * * *and t_book.language_id in (select id from t_language where (upper(cd) in ('DE', 'EN')))) * * * * * * * * * *or exists (select 1 from t_author where 1 = 0)) order by t_book.id asc Note: The problem is in the "OR EXISTS" clause that is used inside a "JOIN..ON" condition. Note also: The above query is just an integration test query and has no semantic meaning to me. Cheers Lukas |
#3
| |||
| |||
|
|
On May 31, 5:46*pm, Lukas Eder <lukas.e... (AT) gmail (DOT) com> wrote: Hi, While adding support for Ingres in my database abstraction libraryhttp://www.jooq.org, I have encountered E_OP039F_BOOLFACT as documented here:http://docs.ingres.com/ingres/9.2/in...de/1283-errors... This error should be reported, so here I am. Here's how to reproduce it with Ingres Visual SQL 10.1.0 (E_SC0129 Ingres Release II 10.1.0 (a64.win/118). I can provide more Server Info upon request. Create this database schema:http://jooq.svn.sourceforge.net/view...rc/org/jooq/te... Fill in this data:http://jooq.svn.sourceforge.net/view...rc/org/jooq/te... Now this query fails: select * from t_author join t_book on ((t_author.id = t_book.author_id * * * * * * * * * *and t_book.language_id in (select id from t_language where (upper(cd) in ('DE', 'EN')))) * * * * * * * * * *or exists (select 1 from t_author where 1 = 0)) order by t_book.id asc Note: The problem is in the "OR EXISTS" clause that is used inside a "JOIN..ON" condition. Note also: The above query is just an integration test query and has no semantic meaning to me. Cheers Lukas The problem is as the message says - a consistency error in the parse tree. In this case, you have the option of using traditional syntax - making it "t_author, t_book" and turning the "on" clause into a "where" clause. I would expect that to fix it. But it is a bug as consistency errors shouldn't happen. |
#4
| |||
| |||
|
|
On 1 Jun., 15:22, DougI <dougink... (AT) gmail (DOT) com> wrote: On May 31, 5:46 pm, Lukas Eder <lukas.e... (AT) gmail (DOT) com> wrote: Hi, While adding support for Ingres in my database abstraction libraryhttp://www.jooq.org, I have encountered E_OP039F_BOOLFACT as documented here: http://docs.ingres.com/ingres/9.2/in...de/1283-errors... This error should be reported, so here I am. Here's how to reproduce it with Ingres Visual SQL 10.1.0 (E_SC0129 Ingres Release II 10.1.0 (a64.win/118). I can provide more Server Info upon request. Create this database schema: http://jooq.svn.sourceforge.net/view...rc/org/jooq/te... Fill in this data: http://jooq.svn.sourceforge.net/view...rc/org/jooq/te... Now this query fails: select * from t_author join t_book on ((t_author.id = t_book.author_id and t_book.language_id in (select id from t_language where (upper(cd) in ('DE', 'EN')))) or exists (select 1 from t_author where 1 = 0)) order by t_book.id asc Note: The problem is in the "OR EXISTS" clause that is used inside a "JOIN..ON" condition. Note also: The above query is just an integration test query and has no semantic meaning to me. Cheers Lukas The problem is as the message says - a consistency error in the parse tree. In this case, you have the option of using traditional syntax - making it "t_author, t_book" and turning the "on" clause into a "where" clause. I would expect that to fix it. But it is a bug as consistency errors shouldn't happen. That's what I thought. I don't really need this query syntax right now, I just wanted to report the bug. Should I also report it elsewhere, other than on this news group? _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#5
| |||
| |||
|
|
http://bugs.ingres.com? HTH ![]() |
#6
| |||
| |||
|
|
Hi, While adding support for Ingres in my database abstraction library http://www.jooq.org, I have encountered E_OP039F_BOOLFACT as documented here: http://docs.ingres.com/ingres/9.2/in...rrors-from-opf This error should be reported, so here I am. Here's how to reproduce it with Ingres Visual SQL 10.1.0 (E_SC0129 Ingres Release II 10.1.0 (a64.win/118). I can provide more Server Info upon request. Create this database schema: http://jooq.svn.sourceforge.net/view...e=text%2Fplain Fill in this data: http://jooq.svn.sourceforge.net/view...e=text%2Fplain Now this query fails: select * from t_author join t_book on ((t_author.id = t_book.author_id and t_book.language_id in (select id from t_language where (upper(cd) in ('DE', 'EN')))) or exists (select 1 from t_author where 1 = 0)) order by t_book.id asc Note: The problem is in the "OR EXISTS" clause that is used inside a "JOIN..ON" condition. Note also: The above query is just an integration test query and has no semantic meaning to me. Cheers Lukas |
![]() |
| Thread Tools | |
| Display Modes | |
| |