Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

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

 
   Database Forums (Home) -> Ingres RSS
Next:  Need Help with Totaling  
Author Message
Jukka Hartikainen

External


Since: Jan 12, 2010
Posts: 1



(Msg. 1) Posted: Tue Jan 12, 2010 1:25 am
Post subject: [Info-Ingres] Strange ADF error in sql-query
Archived from groups: comp>databases>ingres (more info?)

Hi.

First. Our old production version is the good old one
Ingres SPARC SOLARIS Version II 2.5/0011 (su4.us5/00).

One simple sql-query in that system:
__ Tue Jan 12 07:27:10 2010
___________________________________________________
1> select kpaiva,count(sotu),sum(oppisteet) from opsuor1 where
kpaiva like '2010%' and lts='KIE'
group by kpaiva



+--------------+-------------+-----------+
|kpaiva |col2 |col3 |
+--------------+-------------+-----------+
|20100102 10:12| 9| 18.000|
|20100104 08:43| 1| 4.000|
|20100107 09:54| 16| 32.000|
....

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


But... The same query in
Ingres Linux Version II 9.3.0 (int.lnx/138)NPTL gets:

1> select kpaiva,count(sotu),sum(oppisteet) from opsuor1 where
kpaiva like '2010%' and lts='KIE'
group by kpaiva


********************************************************************
Tue Jan 12 07:19:55 2010 E_OP078C_ADC_COMPARE consistency check
- ADF compare routine failed

********************************************************************
E_AD5001 Datatype is not a string datatype.
(Tue Jan 12 07:19:55 2010)


End of Request - Terminated by Errors

If I try that either without count or sum it works:

1> select kpaiva,sum(oppisteet) from opsuor1 where
kpaiva like '2010%' and lts='KIE'
group by kpaiva



+--------------+-----------+
|kpaiva |col2 |
+--------------+-----------+
|20100102 10:12| 18.000|
|20100104 08:43| 4.000|
|20100107 09:54| 32.000|
....

1> select kpaiva,count(sotu) from opsuor1 where
kpaiva like '2010%' and lts='KIE'
group by kpaiva



+--------------+-------------+
|kpaiva |col2 |
+--------------+-------------+
|20100102 10:12| 9|
|20100104 08:43| 1|
|20100107 09:54| 16|
....



Whats going on?

-Jukka-

 >> Stay informed about: [Info-Ingres] Strange ADF error in sql-query 
Back to top
Login to vote
Ingres Forums

External


Since: Oct 20, 2009
Posts: 12



(Msg. 2) Posted: Tue Jan 12, 2010 7:46 am
Post subject: Re: [Info-Ingres] Strange ADF error in sql-query [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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


--
hanal04
------------------------------------------------------------------------
hanal04's Profile: http://community.ingres.com/forum/member.php?userid=443
View this thread: http://community.ingres.com/forum/showthread.php?t=11549

 >> Stay informed about: [Info-Ingres] Strange ADF error in sql-query 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
[Info-Ingres] Friday fun. Strange Date field group by beha.. - I've been working with Ingres support on an interesting problem this week. The answer suprised me. This query produced extra rows in the testing environment. The same data had no problem in production. (The original query is of course much more complex)...

[Info-ingres] ingres r3 error on hp-ux - hi , i tried install ingres r3 in a uname -a HP-UX itanium B.11.23 U ia64 .... install ok but .... ingres start with can't access kernel address 23d9c0 syscheck -v Checking host "itanium.unizar.es" for system resources required to run ...

[Info-ingres] Query plany question. - Hello. I have had performace problem with a query of type: select ...something from every table and not in index... from a, b, c, d... where a.field1 = 'konstant1' and a.field2 = 'konstant2' and a.field1 = b.field1 and a.field2 = b.field2 ...

[Info-ingres] OPF Error: E_OP0491_NO_QEP - Hi There, I'm running IngresII 2.6/0305 patch 9892 on a linux box. I have query: select ps.*, fe.* from patient_schedule ps left join form_entry fe on fe.form_type=ps.form_type and fe.patient_id=ps.patient_id which when executed generates the error.....

[Info-ingres] Weird Optimizer error - Hi Dudes, Anyone got any idea what this means: E_OP0393 consistency check - the selectivity of a histogram was out of range 0.0 <= value <= 1.0 The box is II 2.6 patch 10993 on axp.osf. It is SQL-92 compliant. I have had problems with sta...
   Database Forums (Home) -> Ingres All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]