summaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/execute.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/odbc/execute.c')
-rw-r--r--src/interfaces/odbc/execute.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/interfaces/odbc/execute.c b/src/interfaces/odbc/execute.c
index 87b6a31162f..13d979a01ff 100644
--- a/src/interfaces/odbc/execute.c
+++ b/src/interfaces/odbc/execute.c
@@ -108,8 +108,8 @@ StatementClass *self = (StatementClass *) hstmt;
self->prepare = TRUE;
self->statement_type = statement_type(self->statement);
- // Check if connection is readonly (only selects are allowed)
- if ( CC_is_readonly(self->hdbc) && STMT_UPDATE(self)) {
+ // Check if connection is onlyread (only selects are allowed)
+ if ( CC_is_onlyread(self->hdbc) && STMT_UPDATE(self)) {
self->errornumber = STMT_EXEC_ERROR;
self->errormsg = "Connection is readonly, only select statements are allowed.";
SC_log_error(func, "", self);
@@ -159,8 +159,8 @@ static char *func = "SQLExecDirect";
stmt->prepare = FALSE;
stmt->statement_type = statement_type(stmt->statement);
- // Check if connection is readonly (only selects are allowed)
- if ( CC_is_readonly(stmt->hdbc) && STMT_UPDATE(stmt)) {
+ // Check if connection is onlyread (only selects are allowed)
+ if ( CC_is_onlyread(stmt->hdbc) && STMT_UPDATE(stmt)) {
stmt->errornumber = STMT_EXEC_ERROR;
stmt->errormsg = "Connection is readonly, only select statements are allowed.";
SC_log_error(func, "", stmt);
@@ -727,5 +727,3 @@ char *buffer;
return SQL_SUCCESS;
}
-
-