Hi,
in the current SVN repository is still an issue when using parameterized queries. When a parameter is being detected as stUnicodeString, then the PrepareSQLParam does not detect that (the case statement doesn't handle stUnicodeString).
I've attached the patch. Maybe we want to handle compiler versioning to this, since I've only tested on Delphi 2010.
On a side note, we might wanna check other database drivers as well, making sure all types are being handled.
ZDbcMySQLStatement and Unicode parameters
Moderators: gto, EgonHugeist, olehs
-
- Junior Boarder
- Posts: 29
- Joined: 31.10.2005, 00:09
- Location: Antwerp
- Contact:
ZDbcMySQLStatement and Unicode parameters
You do not have the required permissions to view the files attached to this post.
Brave Cobra
bravecobra.com
bravecobra.com
-
- Junior Boarder
- Posts: 29
- Joined: 31.10.2005, 00:09
- Location: Antwerp
- Contact:
using Zeos SVN rev 800 and Delphi 2010
Hi,
Same problem with unicode string parameter Query and SQLite. Patch from BraveCobra also works here :-).
Is it possible to add it in ZDbcSqLiteStatement.pas (Line 361)
361 stString, stUnicodeString, stBytes:
362 Result := GetEscapeString(SoftVarManager.GetAsString(Value));
Pascal
Hi,
Same problem with unicode string parameter Query and SQLite. Patch from BraveCobra also works here :-).
Is it possible to add it in ZDbcSqLiteStatement.pas (Line 361)
361 stString, stUnicodeString, stBytes:
362 Result := GetEscapeString(SoftVarManager.GetAsString(Value));
Pascal
In theory, there is no difference between theory and practice. But, in practice, there is.