04.02.2013 12:10, Jojakim wrote:
> But my question was, how these fields are (or should be) used in the driver
> sources. Is this like the standard, or do they have some internal meanings or
> special treatments in special cases. And how should they be set up from the
> FBs meta data info.

   It depends on coercion between FB data types and ODBC C-types. If, for 
example, 
SQL_VARYING is coerced to SQL_C_WCHAR, and FB character set is UTF8, octets 
length should 
be = sqllen/2, display length = sqllen/4. For single-byte character sets octets 
length = 
sqllen*2, display length = sqllen.
   Of course, all this in case if WCHAR is stay for UCS2. For UTF-16 I have no 
idea whet 
to do if some characters in FB data ends up in four bytes in UTF-16 and how to 
detect it.

-- 
   WBR, SD.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Firebird-odbc-devel mailing list
Firebird-odbc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-odbc-devel

Reply via email to