SQLite3 [UDBC2] - "Could not coerce arguments" error for UTF8 chars

Petr Fischer petr.fischer at me.com
Tue Feb 5 09:51:42 EST 2019


Hello, there is a little mess in SQLite 3 drivers for Pharo, so I am using Pharo 7 and newest UDBC2 sqlite driver from here: http://smalltalkhub.com/#!/~TorstenBergmann/UDBC2



When I executing this insert SQL command:

insert into "TABLE" (..., "VARCHAR_FIELD") values (..., 'ěščřžýáíéúůĚŠČŘŽÝÁÍÉÚŮ');


this UDBC error occurs (what's wrong?):



Error: "Could not coerce arguments"



Stack:

ExternalLibraryFunction(Object)>>error:
ExternalLibraryFunction(Object)>>externalCallFailed
ExternalLibraryFunction(ExternalFunction)>>invokeWithArguments:
UDBCSQLite3Library>>apiPrepare:withSQLText:with:with:with:
UDBCSQLite3Library>>prepare:on:with:
UDBCSQLite3Connection(UDBCSQLite3BaseConnection)>>prepare:
UDBCSQLite3ResultSet>>prepareStatement:
UDBCSQLite3ResultSet>>execute:withCollection:
UDBCSQLite3ResultSet>>execute:with:on:
UDBCSQLite3Connection>>execute:with:
UDBCSQLite3Connection>>execute:
...



Thanks, pf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20190205/21134b1a/attachment.html>


More information about the Pharo-users mailing list