Skip to Content.
Sympa Menu

freetds - RE: [freetds] select bug...

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Spyros Ioakim" <sioakim AT atlas.ace-hellas.gr>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] select bug...
  • Date: Tue, 6 May 2003 14:22:25 +0300

Ok I'm attaching the freetds.log file.
I used tsql to execute those two (I got one result for the first and
none for the second just like with PHP. Remember SQL Server with
Enterprise manager gave me 2 and 1 results respectively)
I understand nothing of what the log says so if can please help me...

Thanks,
Spyros

-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of Spyros Ioakim
Sent: Tuesday, May 06, 2003 2:04 PM
To: freetds AT lists.ibiblio.org
Subject: [freetds] select bug...


I have the following two queries:

SELECT Company.CompId FROM COMPANY, INSTALLS WHERE Company.CompId = 186
and (NoDownloads is null OR NoDownloads=0) AND Installs.CompID =
Company.CompID AND Installs.ProdId IN (SELECT ProdId FROM Products WHERE
Products.Code LIKE 'N%3%') AND ( (Installs.InstDate >= '11/06/02') OR
(Installs.CompId IN (SELECT Installs.CompId FROM Installs, Products
WHERE Installs.ProdId = Products.ProdId AND ( (Products.Code LIKE
'N%3%') ) AND Installs.InstlId IN (SELECT InstlId FROM Cntrcts WHERE
CntrctType LIKE 'πΣ%' AND ToDate >= '05/06/03') ) ) )


SELECT Company.CompId FROM COMPANY, INSTALLS WHERE Company.CompId = 258
and (NoDownloads is null OR NoDownloads=0) AND Installs.CompID =
Company.CompID AND Installs.ProdId IN (SELECT ProdId FROM Products WHERE
Products.Code LIKE 'N%3%') AND ( (Installs.InstDate >= '11/06/02') OR
(Installs.CompId IN (SELECT Installs.CompId FROM Installs, Products
WHERE Installs.ProdId = Products.ProdId AND ( (Products.Code LIKE
'N%3%') ) AND Installs.InstlId IN (SELECT InstlId FROM Cntrcts WHERE
CntrctType LIKE 'πΣ%' AND ToDate >= '05/06/03') ) ) )

SQL Server reports 2 results for the first and 1 result for the seconds
query.
FreeTDS reports 1 result for the first and 0 results for the second
query.
Yes the select has a couple of greek characters in CntrctType.

Any ideas on how to trace the problem (as you can see the only
difference is the CompId value).
How can I use this outside of php and post you a log of the two queries?

Thanks,
Spyros


_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds

Attachment: freetds.log
Description: Binary data




Archive powered by MHonArc 2.6.24.

Top of Page