[freetds] Status of UTF-8 support in 0.83 dev

Sebastien FLAESCH sf at 4js.com
Tue Aug 12 11:15:15 EDT 2008


With this other example (using SQL_CHAR / SQL_VARCHAR), I get this error:

Error -1 at: SQLExecute 1.1 StmtH
Diagnostic info:
   SQL State: 42000
   SQL code : 8005
   Message  : [FreeTDS][SQL Server]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 4: The 
parameter name is invalid.


I think in a UTF-8 context it makes sense to bind with SQL_CHAR/SQL_VARCHAR
for the ParameterType argument (#5) of SQLBindParameter, and passing a number
of bytes in the ColumnSize (#6) and StrLen_or_IndPtr (#10) arguments...

?

Seb
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: odbctest11.c
Url: http://lists.ibiblio.org/pipermail/freetds/attachments/20080812/f2c753a7/attachment-0001.c 


More information about the FreeTDS mailing list