From 32d223376f5d3e42403493715922ec27cae7d9ad Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Mar 2011 17:11:00 +0200 Subject: Handle MySQL types spelled in lower case --- odb/mysql/context.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'odb/mysql/context.cxx') 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; } -- cgit v1.1