更新日期:2024年09月11日
SQLGetTypeInfo 返回有关数据源支持的数据类型的信息。
驱动程序以 SQL 结果集的格式返回信息。
下表描述了 SQLGetTypeInfo 的 SQLSTATE 和错误值。
SQLSTATE
错误值
错误消息
01000
-11001
General warning
08S01
-11020
Communication-link failure
24000
-11031
Invalid cursor state
S1000
-11060
General error
S1001
-11061
Memory-allocation failure
S1004
-11064
SQL data type out of range
S1008
-11065
Operation canceled
S1010
-11067
Function-sequence error
S1C00
-11092
Driver not capable
S1T00
-11094
Time-out expired
08S01
-11301
A protocol error has been detected. Current connection is
closed.
S1000
-11305
SQLGetTypeInfo supported for FORWARD_ONLY
cursors
S1000
-11310
Create and Drop must be executed within a ServerOnly
Connection
S1000
-11320
Syntax error
S1000
-11323
The statement contained an escape clause not supported by
this database driver