aboutsummaryrefslogtreecommitdiff
path: root/src/sql.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql.c')
-rw-r--r--src/sql.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sql.c b/src/sql.c
index 3a6cbe4..f56ec13 100644
--- a/src/sql.c
+++ b/src/sql.c
@@ -143,10 +143,8 @@ sql_query(struct dbrw_connection *conn, const char *input)
return 1;
}
} while (conn->state != state_connected);
- if (conn->conf->backend->sql_query(conn, input) == 0) {
- conn->state = state_result;
+ if (conn->conf->backend->sql_query(conn, input) == 0)
return 0;
- }
return 1;
}

Return to:

Send suggestions and report system problems to the System administrator.