mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
1) Fix a bug in declare/fetch mode.
2) Suppress some error logs for the request to other drivers.
This commit is contained in:
src/interfaces/odbc
@ -209,6 +209,19 @@ set_statement_option(ConnectionClass *conn,
|
||||
conn->stmtOptions.use_bookmarks = vParam;
|
||||
break;
|
||||
|
||||
case 1227:
|
||||
case 1228:
|
||||
if (stmt)
|
||||
{
|
||||
stmt->errornumber = STMT_OPTION_NOT_FOR_THE_DRIVER;
|
||||
stmt->errormsg = "The option may be for MS SQL Server(Set)";
|
||||
}
|
||||
else if (conn)
|
||||
{
|
||||
conn->errornumber = STMT_OPTION_NOT_FOR_THE_DRIVER;
|
||||
conn->errormsg = "The option may be for MS SQL Server(Set)";
|
||||
}
|
||||
return SQL_ERROR;
|
||||
default:
|
||||
{
|
||||
char option[64];
|
||||
|
Reference in New Issue
Block a user