sync odbc to opengauss

This commit is contained in:
yanghaoran
2021-09-18 23:37:19 +08:00
parent a8b0bc2bca
commit 40e0d54857
27 changed files with 16821 additions and 38 deletions

View File

@ -398,6 +398,11 @@ PGAPI_GetConnectAttr(HDBC ConnectionHandle,
ConnectionClass *conn = (ConnectionClass *) ConnectionHandle;
RETCODE ret = SQL_SUCCESS;
SQLINTEGER len = 4;
if (Value == NULL) {
CC_set_error(conn, CONN_VALUE_OUT_OF_RANGE, "Invalid Connection value", "PGAPI_GetConnectOption");
return SQL_ERROR;
}
MYLOG(0, "entering %d\n", Attribute);
switch (Attribute)