SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 35475: SCL code passes a number instead of date when you connect to the MySQL database with SAS/ACCESS® Interface to MySQL

DetailsHotfixAboutRate It

When you use SCL code and you connect to the MySQL database with SAS/ACCESS Interface to MySQL, the SCL code does not pass a formatted date to MySQL. Instead, it passes a number to the database.

If you have two or more WHERE clauses in the SCL, no error is returned but resulting data will not be correct. You can see the problem is you use the SASTRACE= option for tracing, as shown in this example:

29   options sastrace=',,,d' sastraceloc=saslog nostsuffix;
30   /* Execute SCL program */
31   proc display c=scl.mysql.error.scl;
32   run;

MYSQL_1: Executed: on connection 2
SELECT * FROM `_GEDTEST` where (0)
dsid=1
rc=0
MYSQL_2: Executed: on connection 2
SELECT  `char`, `x`  FROM `_GEDTEST`  WHERE  ( `x` = CAST('2008-01-01' AS DATE)
)
rcf=0
rc=-580017
rc=0
MYSQL_3: Executed: on connection 2
SELECT  `char`, `x`  FROM `_GEDTEST`  WHERE  ( `x` = 17533 )
rcf=-1

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to MySQLMicrosoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS2M2
Windows Vista9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS2M2
Linux9.1 TS1M3 SP49.2 TS2M2
Linux on Itanium9.1 TS1M3 SP49.2 TS2M2
Solaris for x649.1 TS1M3 SP49.2 TS2M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.