Thread View: borland.public.cppbuilder.database.multi-tier
2 messages
2 total messages
Started by wegmann
Wed, 27 Aug 2003 11:01
I am establishing a connection to a CORBA server via a TClientDataSet component.
Author: wegmann
Date: Wed, 27 Aug 2003 11:01
Date: Wed, 27 Aug 2003 11:01
21 lines
1946 bytes
1946 bytes
I am establishing a connection to a CORBA server via a TClientDataSet component. For reasons of testing I connect this component (called CDS_Kombi_All, see screenshot on http://www.wegmann.info/Screenshot.jpg) to a DBGrid , because I get an EOverflow exception in the linked DataSetAdapter1 of the web application during runtime. All numeric fields are not properly shown in this DBGrid and in the corresponding TAdapter component of the web application, alternatively "Overflow" is displayed in these fields during design time. Thus the reason for this behaviour is not located in the web application. The ClientDataSet component accesses a CORBA server, where a TADOQuery is located in a data module. When i copy this query (called Q_Kombi_All) in my client data module and connect the DBGrid component to this query, all data is properly displayed. What's wrong?? Andreas
hm, is it a SQL- Problem ? I think "UNION ALL" is the reason. -> a bug ?
Author: wegmann
Date: Wed, 27 Aug 2003 11:55
Date: Wed, 27 Aug 2003 11:55
77 lines
3359 bytes
3359 bytes
The other queries don't have this Problem.
So I tried another SQL- Syntax.
The next SQL- Statement does work:
-------------------- SQL
select k.nrdispo,k.nrmandant
FROM admin.sd_kombi_prod k,
admin.ep_gfk_ratings r,
admin.ep_potentiale p,
admin.sd_user u,
admin.sd_user_kunde uk,
admin.ep_disp_faktor df
WHERE k.wb_id = r.wb_id(+)
AND k.nrkunde=uk.nrkunde
AND u.id_user=uk.id_user
AND u.id_user=9
AND k.datum = p.datum
AND k.sender_id= df.sender_id(+)
AND k.datum BETWEEN df.dat_von (+) AND df.dat_bis (+)
AND k.spotdauer BETWEEN df.min_sek(+) AND df.max_sek (+)
AND k.datum <= (SELECT MAX(datum) FROM ADMIN.Ep_Gfk_Inseln)
and k.nrdispo=426283
-------------------- SQL
The field "nrmandant" (an Integer) is shown right.
This SQL- Statement dosen't work how I want. The ClientDataSet can't work
with it:
-------------------- SQL
select k.nrdispo,k.nrmandant
FROM admin.sd_kombi_prod k,
admin.ep_gfk_ratings r,
admin.ep_potentiale p,
admin.sd_user u,
admin.sd_user_kunde uk,
admin.ep_disp_faktor df
WHERE k.wb_id = r.wb_id(+)
AND k.nrkunde=uk.nrkunde
AND u.id_user=uk.id_user
AND u.id_user=9
AND k.datum = p.datum
AND k.sender_id= df.sender_id(+)
AND k.datum BETWEEN df.dat_von (+) AND df.dat_bis (+)
AND k.spotdauer BETWEEN df.min_sek(+) AND df.max_sek (+)
AND k.datum <= (SELECT MAX(datum) FROM ADMIN.Ep_Gfk_Inseln)
and k.nrdispo=426283
union all
select k.nrdispo,k.nrmandant
FROM admin.sd_kombi_prod k,
admin.edi_prog_ratings r,
admin.ep_potentiale p,
admin.sd_user u,
admin.sd_user_kunde uk,
admin.ep_disp_faktor df
WHERE k.wb_id = r.wb_id(+)
AND k.nrkunde=uk.nrkunde
AND u.id_user=uk.id_user
AND u.id_user=9
AND k.datum = p.datum
AND k.sender_id= df.sender_id(+)
AND k.datum BETWEEN df.dat_von (+) AND df.dat_bis (+)
AND k.spotdauer BETWEEN df.min_sek(+) AND df.max_sek (+)
AND k.datum > (SELECT MAX(datum) FROM ADMIN.Ep_Gfk_Inseln)
and k.nrdispo=426283
-------------------- SQL
now the field "nrmandant" is shown as an defaultvalue " berlauf" for the
overflow- Error.
Is it a bug ?
How chan I fix my Problems ?
Andreas
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads