Re: sql query works in database connector but not in ZSQL method
robert rottermann <[email protected]>
| Newsgroups | gmane.comp.web.zope.database |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Charlie Clark schrieb: > Am 17.01.2007, 15:42 Uhr, schrieb robert rottermann <[email protected]>: > >> Hi there, >> I try the following statement: >> CALL selectVertexProperties(1, @error2) >> when I execute this directly in the test "window" of the database >> connection, it works fine. >> when i execute the same line in the test window of a ZSQL Method >> then I get an error: >> Error, Products.mxODBCZopeDA.ZopeDA.ReplayTransaction: OperationalError >> on : ('HYT00', 2014, "[unixODBC][MySQL][ODBC 3.51 >> Driver][mysqld-5.0.26]Commands out of sync; you can't run this command >> now", 6113) SQL used: > > Robert, > > you might have to call this using the callproc() method of the DA in an > ExternalMethod. > > Charlie > If tried that, but somehow I did not get it rigth: questions: - - the first parameter is an integer, how do I force that? - - the second parameter is an out parameter, how do I specify that ? thanks robert ('23000', 1064, "[unixODBC][MySQL][ODBC 3.51 Driver][mysqld-5.0.26]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '{call selectVertexProperties('1')}' at line 1", 6088) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFFrktyGaryJ0T9kUYRAv7xAJ9fTQ819q6dpQELO4Y3Ix/LB7ARjgCfTmRx tA3og1VuWZnRmDqpcjhUqdY= =S1mn -----END PGP SIGNATURE-----