更新日期:2024年09月11日
SQLPrimaryKeys 返回组成表的主键的列的名称。
驱动程序将此信息返回为结果集。该函数不支持在单个调用中返回多个表的主键。
下表描述了 SQLPrimaryKeys 的 SQLSTATE 和错误值。
SQLSTATE
错误值
错误消息
GBase 8s ODBC Driver 程序员指南
南大通用数据技术股份有限公司
- 235 -
SQLSTATE
错误值
错误消息
01000
-11001
General warning
08S01
-11020
Communication-link failure
24000
-11031
Invalid cursor state
S1000
-11060
General error
S1001
-11061
Memory-allocation failure
S1008
-11065
Operation canceled
S1010
-11067
Function-sequence error
S1090
-11071
Invalid string or buffer length
S1C00
-11092
Driver not capable
S1T00
-11094
Time-out expired
S1C00
-11300
SQL_DEFAULT_PARAM not supported
08S01
-11301
A protocol error has been detected. Current connection is
closed.
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
GBase 8s 支持的整型与GCI 类型对应:
SQLT_INT 在GCI 接口中是所有整型类型的统称,执行绑定操作时必须给出数据的大小。
否则缺省按照4 字节整型处理。
单字节整型在GBase 8s 并没有对应类型,但是在GCI 接口操作整型数据的过程中,仍
可以使用单字节的char 类型或者unsigned char 类型进行操作。在此情况下,查询整型数据
有可能会出现溢出错误。
针对单字节整型,
GBase 8s 没有对应的单独类型支持,
可以使用其他的整型类型与之对
应。
在GCI 接口中可以正常使用单字节整型变量,
其范围是-127 至127,
.不在这个范围的会
报错。其绑定变量长度为1 字节。
目前GCI 接口库中对于无符号整型的处理并没有完整支持。