SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 33847: An error occurs when you run a stored procedure on a MYSQL client with SAS/ACCESS® Interface to MySQL

DetailsHotfixAboutRate It

An error occurs when you run a stored procedure on a MYSQL client with SAS/ACCESS® Interface to MySQL, even though stored procedures are allowed in MySQL 5.0 or later. The following message is generated by this error:

ERROR: Execute error: PROCEDURE <stored procedure name>
can't return a result set in the given context

Even though the stored procedure is run on MySQL, the error occurs in the SAS® System when results are returned from MySQL to SAS.

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

After you install the hot fix, you can run stored procedures without encountering an error. However, you need to use the RESULTS=MEMORY option in the SQL procedure’s CONNECT statement, as follows:

proc sql; connect to mysql(server='###.##.##.###' user=user-id password=password database=databaseName results=memory); execute(MySQL-syntax-for-stored-procedure) by mysql; disconnect from mysql; quit;

Stored procedures are not supported when the RESULTS=SERVER or RESULTS=DISK options are used because these options do not bring in multiple result sets.



Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to MySQLMicrosoft® Windows® for x649.1 TS1M3 SP49.2 TS1M0
Microsoft 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 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS1M0
Windows Vista9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS1M0
Linux9.1 TS1M3 SP49.2 TS1M0
Linux on Itanium9.1 TS1M3 SP49.2 TS1M0
* 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.