diff options
author | Hiroshi Inoue <inoue@tpf.co.jp> | 2002-03-11 10:25:57 +0000 |
---|---|---|
committer | Hiroshi Inoue <inoue@tpf.co.jp> | 2002-03-11 10:25:57 +0000 |
commit | dadb718b103d6675399547d3f6c12d0726f9537e (patch) | |
tree | 52a79b9c8affb5d5c4b7591516d470367483f60a /src/interfaces/odbc/statement.c | |
parent | d0d3ab532509c11c6f21ce189ad1ba44437baa62 (diff) | |
download | postgresql-dadb718b103d6675399547d3f6c12d0726f9537e.tar.gz postgresql-dadb718b103d6675399547d3f6c12d0726f9537e.zip |
Bug fixes for the 2002-03-08 change.
1) Put back the error message for SQLError().
2) Change Disallow premature to handle the SELECTed
result.
3) Put back the behavior of AUTUCOMMIT mode change.
4) Fix SQLColumns for ODBC3.0.
5) Improve the handling of variable bookmark in ODBC3.0.
6) Enable Recognize Unique Index Button.
Diffstat (limited to 'src/interfaces/odbc/statement.c')
-rw-r--r-- | src/interfaces/odbc/statement.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/interfaces/odbc/statement.c b/src/interfaces/odbc/statement.c index 513c916019a..4bb884dbf8f 100644 --- a/src/interfaces/odbc/statement.c +++ b/src/interfaces/odbc/statement.c @@ -959,8 +959,7 @@ SC_execute(StatementClass *self) mylog(" Sending SELECT statement on stmt=%u, cursor_name='%s'\n", self, self->cursor_name); /* send the declare/select */ - res = CC_send_query(conn, self->stmt_with_params, NULL, TRUE); - + res = CC_send_query(conn, self->stmt_with_params, NULL, FALSE); if (SC_is_fetchcursor(self) && res != NULL && QR_command_successful(res)) { @@ -1068,7 +1067,7 @@ SC_execute(StatementClass *self) else { self->errornumber = STMT_EXEC_ERROR; - self->errormsg = "Error while executing the query"; + self->errormsg = conn->errormsg; } if (!self->internal) |