[freetds] Status of UTF-8 support in 0.83 dev
Sebastien FLAESCH
sf at 4js.com
Tue Aug 12 11:20:41 EDT 2008
Here is an SQLBindParameter() example using UT-8 from DB2 / CLI :
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/topic/com.ibm.db29.doc.odbc/db2z_utf8pm.htm
Seb
Sebastien FLAESCH wrote:
> 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
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
More information about the FreeTDS
mailing list