MySQL4: prepare still fails
Posted: Fri 27 Jan 2006 10:19
Hi there,
When calling the Prepare method on a "direct" connection and MySQL 4, the MyDAC component set now raises an error:
Prepare/UnPrepare is not supported by this MySQL server version
Well, great... But this is not what we agreed to, is it?
In Delphi code, a "prepare" can mean multiple things. It can get things ready for parameters - if supported - and create a server side "prepared statement".
If you're programming for MySQL 4, 4.1, 5 and 5.1, it would be very very nice to have a "prepare" NOT raise an error, but rather just ignore that it cannot do a server side prepared statement.
I thought that when you said you would be fixing this, we agreed that it would silently ignore MySQL 4.0 and just return to the caller...
--
Martijn Tonies
Upscene Productions
When calling the Prepare method on a "direct" connection and MySQL 4, the MyDAC component set now raises an error:
Prepare/UnPrepare is not supported by this MySQL server version
Well, great... But this is not what we agreed to, is it?
In Delphi code, a "prepare" can mean multiple things. It can get things ready for parameters - if supported - and create a server side "prepared statement".
If you're programming for MySQL 4, 4.1, 5 and 5.1, it would be very very nice to have a "prepare" NOT raise an error, but rather just ignore that it cannot do a server side prepared statement.
I thought that when you said you would be fixing this, we agreed that it would silently ignore MySQL 4.0 and just return to the caller...
--
Martijn Tonies
Upscene Productions