From 8b8cc32c57f445d7d2a30b043fd7f98fa2fe8902 Mon Sep 17 00:00:00 2001 From: Peinthor Rene Date: Mon, 18 Mar 2013 18:20:42 +0100 Subject: [PATCH] remove parenthesis from check constraint --- src/sqlitetypes.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sqlitetypes.cpp b/src/sqlitetypes.cpp index 3dacc6a5..f2ef5887 100644 --- a/src/sqlitetypes.cpp +++ b/src/sqlitetypes.cpp @@ -323,6 +323,9 @@ bool CreateTableWalker::parsecolumn(FieldPtr& f, antlr::RefAST c) { con = con->getNextSibling(); //LPAREN check = concatTextAST(con); + // remove parenthesis + check.remove(check.length()-1, 1); + check.remove(0,1); } break; case sqlite3TokenTypes::DEFAULT: