summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--descriptor.c8
-rw-r--r--statement.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/descriptor.c b/descriptor.c
index e5723bc..f30a0d7 100644
--- a/descriptor.c
+++ b/descriptor.c
@@ -551,11 +551,11 @@ int DC_get_errornumber(const DescriptorClass *desc)
}
/* Map sql commands to statement types */
-static struct
+static const struct
{
- int number;
- const char * ver3str;
- const char * ver2str;
+ int number;
+ const char ver3str[6];
+ const char ver2str[6];
} Descriptor_sqlstate[] =
{
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[] =
{