remove parenthesis from check constraint

This commit is contained in:
Peinthor Rene
2013-03-18 18:20:42 +01:00
parent fc6ea39a61
commit 8b8cc32c57

View File

@@ -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: