1
0
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:
Hiroshi Inoue
2002-04-12 08:03:12 +00:00
parent 50b5d4bf76
commit 40eb5495c9
5 changed files with 27 additions and 4 deletions

@ -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];