dbTalk Databases Forums  

Re: [Info-Ingres] Strange ADF error in sql-query

comp.databases.ingres comp.databases.ingres


Discuss Re: [Info-Ingres] Strange ADF error in sql-query in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ingres Forums
 
Posts: n/a

Default Re: [Info-Ingres] Strange ADF error in sql-query - 01-12-2010 , 07:46 AM






This is probably a string folding bug. Does the problem reproduce
against the latest open source download?


--
hanal04

Reply With Quote
  #2  
Old   
Karl Schendel
 
Posts: n/a

Default Re: [Info-Ingres] Strange ADF error in sql-query - 01-12-2010 , 08:32 AM






On Jan 12, 2010, at 9:14 AM, Ian Kirkham wrote:

Quote:
Hi Jukka,
What datatypes are kpaiva, sotu and oppisteet and are they nullable?
Regards,
Ian

Quote:
kpaiva is c14, sotu c10, oppisteet float4. Yes, simple.

He didn't specify nullability though.

Karl

Reply With Quote
  #3  
Old   
Jukka Hartikainen
 
Posts: n/a

Default Re: [Info-Ingres] Strange ADF error in sql-query - 01-13-2010 , 12:12 AM



Quote:
On Jan 12, 2010, at 9:14 AM, Ian Kirkham wrote:

Hi Jukka,
What datatypes are kpaiva, sotu and oppisteet and are they nullable?
Regards,
Ian


kpaiva is c14, sotu c10, oppisteet float4. Yes, simple.

He didn't specify nullability though.

Karl
Not null, all. If I change the 'like' in the original query
select kpaiva,count(sotu),sum(oppisteet) from opsuor1 where
kpaiva like '2010%' and lts='KIE'
group by kpaiva

to '"', '>', 'between ... and' and so on, the query goes well.
With like, no if there are both 'sum' and 'count' in the query.

Could this be 9.3.0/138 bug number 121841: "Query fails with
E_AD5001_BAD_STRING_TYPE when a
non-unicode column is compared with a unicode string"? Thus,
the only thing I compare is the kpaiva itself, is it like 'something%'?

-Jukka-




Quote:
_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://ext-cando.kettleriverconsulti...fo/info-ingres

Reply With Quote
  #4  
Old   
Ian Kirkham
 
Posts: n/a

Default Re: [Info-Ingres] Strange ADF error in sql-query - 01-13-2010 , 04:01 AM



Hi Jukka,
I am unable to reproduce the bug on any of my builds so I expect that
this has been fixed though I don't see a clear matching bug.
The problem might be a result of constant folding and if this is the
case, casting the pattern as c('2010%') might make a difference.
Regards,
Ian
-----Original Message-----
From: info-ingres-bounces (AT) kettleriver...ting (DOT) com
[mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of
Jukka Hartikainen
Sent: 13 January 2010 06:12
To: Ingres and related product discussion forum
Subject: Re: [Info-Ingres] Strange ADF error in sql-query

Quote:
On Jan 12, 2010, at 9:14 AM, Ian Kirkham wrote:

Hi Jukka,
What datatypes are kpaiva, sotu and oppisteet and are they nullable?
Regards,
Ian


kpaiva is c14, sotu c10, oppisteet float4. Yes, simple.

He didn't specify nullability though.

Karl
Not null, all. If I change the 'like' in the original query
select kpaiva,count(sotu),sum(oppisteet) from opsuor1 where
kpaiva like '2010%' and lts='KIE'
group by kpaiva

to '"', '>', 'between ... and' and so on, the query goes well.
With like, no if there are both 'sum' and 'count' in the query.

Could this be 9.3.0/138 bug number 121841: "Query fails with
E_AD5001_BAD_STRING_TYPE when a
non-unicode column is compared with a unicode string"? Thus,
the only thing I compare is the kpaiva itself, is it like 'something%'?

-Jukka-




Quote:
_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com

http://ext-cando.kettleriverconsulti...fo/info-ingres







_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://ext-cando.kettleriverconsulti...fo/info-ingres

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.