aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-03-14 17:11:00 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-03-14 17:11:00 +0200
commit32d223376f5d3e42403493715922ec27cae7d9ad (patch)
tree0a40c1916f9a62e6d15935f27109dcd46ca03efe
parent6280d3eed90b685e74c86b97b6636c29f868bf55 (diff)
Handle MySQL types spelled in lower case
-rw-r--r--odb/mysql/context.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/odb/mysql/context.cxx b/odb/mysql/context.cxx
index 6a218af..b7d6540 100644
--- a/odb/mysql/context.cxx
+++ b/odb/mysql/context.cxx
@@ -287,7 +287,7 @@ namespace mysql
{
if (tt == sql_token::t_identifier)
{
- string const& id (t.identifier ());
+ string const& id (context::upcase (t.identifier ()));
if (id == "NATIONAL" ||
id == "CHAR" ||
@@ -309,7 +309,7 @@ namespace mysql
if (tt == sql_token::t_identifier)
{
bool match (true);
- string const& id (t.identifier ());
+ string const& id (context::upcase (t.identifier ()));
// Numeric types.
//
@@ -576,7 +576,8 @@ namespace mysql
}
case parse_sign:
{
- if (tt == sql_token::t_identifier && t.identifier () == "UNSIGNED")
+ if (tt == sql_token::t_identifier &&
+ context::upcase (t.identifier ()) == "UNSIGNED")
{
r.unsign = true;
}