summaryrefslogtreecommitdiff
path: root/statement.c
diff options
context:
space:
mode:
authorHeikki Linnakangas2015-01-28 12:47:03 +0000
committerHeikki Linnakangas2015-01-28 12:51:11 +0000
commitb40398d8ddf2d67faa776ae801e82d00ae1d97d8 (patch)
tree74ad005269fe543036d8b0d0bbd9fa94133050c5 /statement.c
parentcf33090ce4922157c868b08a0aecf25b8b4fc229 (diff)
Use fixed-width fields for SQLState values.
I'm hoping that this silences a Coverity warning, making it realize that none of the strings in the array are longer than 5 bytes.
Diffstat (limited to 'statement.c')
-rw-r--r--statement.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/statement.c b/statement.c
index adcbca3..e97367b 100644
--- a/statement.c
+++ b/statement.c
@@ -1215,9 +1215,9 @@ SC_clear_error(StatementClass *self)
/* Map sql commands to statement types */
static const struct
{
- int number;
- const char * ver3str;
- const char * ver2str;
+ int number;
+ const char ver3str[6];
+ const char ver2str[6];
} Statement_sqlstate[] =
{