返回首页

gbase数据、南大通用产品文档:GBase8sbigintcvasc() 函数

更新日期:2024年09月11日

bigintcvasc() 函数将 C char 类型值转换为 BIGINT 类型数值。

语法
mint bigintcvasc(strng_val, len, bigintp)
const char *strng_val
mint len
bigint *bigintp

strng_val
指向字符串的指针。
len
strng_val 字符串的长度。
bigintp
指向包含转换结果的 bigint 变量的指针。

返回代码
0
转换成功。
<0
转换失败。

使用 SRV_FET_BUF_SIZE 环境变量,可以指定本地数据库服务器用于数据库服务器中
分布式 DML 事务的访存缓冲区的大小。

size 是一个不超过 1048576 (1 MiB) 的正整数,指定用于保存服务器中分布式查询
所检索数据的访存缓冲区的大小(以字节计)。

GBase 8s SQL 指南:参考
南大通用数据技术股份有限公司 - 198 -
例如,要在使用 C shell 的 UNIX™ 系统上将缓冲区大小设置为 5,000 字节,请输
入以下命令来设置 SRV_FET_BUF_SIZE:
setenv SRV_FET_BUF_SIZE 5000
将 SRV_FET_BUF_SIZE 设置为有效值后,新值将覆盖 SRV_FET_BUF_SIZE 的缺
省值(或先前设置的任何值)。仅当数据库服务器的启动环境中设置了该设置时,它才生
效。
如果未设置 SRV_FET_BUF_SIZE,那么访存缓冲区的缺省设置取决于行大小。
如果将 SRV_FET_BUF_SIZE 设置为小于缺省大小的值或大于 1048576 (1 MiB) 的
值,那么不会发生任何错误。如果为 SRV_FET_BUF_SIZE 指定大于 1048576 的大小,
那么该值将设置为 1048576。
有效的 SRV_FET_BUF_SIZE 设置仅在服务器上的 DML 事务中生效(在这些事务中,
本地数据库服务器作为协调器或作为下级数据库服务器参与其中)。
但是,它对仅访问本地服务器实例的数据库的查询无效,并且不会影响客户机与本地
服务器通信中的访存缓冲区的大小。
BYTE 和 TEXT 对象的处理不会受 SRV_FET_BUF_SIZE 设置的影响。
为本地数据库服务器环境设置 SRV_FET_BUF_SIZE 不会重置在服务器上的 DML
事务中协调本地服务器实例或参与其中的远程服务器实例的访存缓冲区大小。
缓冲区的大小越大,可返回的行就越多,因而本地服务器必须等待数据库服务器返回
行的频率就越低。大型缓冲区可提高在服务器之间传输大量数据的性能。

描述从中捕获数据的表。
公共标头中有效负载大小字段中的值表示列名和数据类型列表占用的字节
数。
特定于CDC_REC_TABSCHEMA 记录的报头位于公共报头之后。
表3-9.CDC_REC_TABSCHEMA 记录的格式
区分
长度
描述
User data
4 bytes
The table identifier that
was specified in the
cdc_startcapture() function for
the table being captured.
Flags
4 bytes
Must be 0.
Fixed-length size
4 bytes
The number of bytes of data
in fixed-length columns in the
table.

GBase 8s数据库安装手册
南大通用数据技术股份有限公司
29
Fixed-length columns
4 bytes
The number of fixed-length
columns in the table being
captured.
A 0 indicates that there are
no fixed-length columns.
Variable-length columns
4 bytes
The number of
variable-length columns in
the table being captured.
A 0 indicates that there are
no variable-length columns.
Column names and data types
variable byte length
A comma-separated list of
column names and data types in
UTF-8 format. The column list
conforms to the syntax of the
column list in a CREATE TABLE
statement.
Names of any fixed-length
columns appear before names of
any variable-length columns.
The number of columns
equals the number of
fixed-length columns plus the
number of
variable-length columns.