From 306d6d3ca9c9ad774d19135681a7f9805f77035f Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 22 Feb 2015 14:06:29 -0500 Subject: Imported Upstream version 3.0.3 --- SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp') diff --git a/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp b/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp index b34f11e..cd8c4b2 100644 --- a/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp +++ b/SQLiteStudio3/Tests/ParserTest/tst_parsertest.cpp @@ -36,6 +36,7 @@ class ParserTest : public QObject void testExpr(); void testCommentBeginMultiline(); void testBetween(); + void testBigNum(); void initTestCase(); void cleanupTestCase(); }; @@ -346,6 +347,13 @@ void ParserTest::testBetween() QVERIFY(res); } +void ParserTest::testBigNum() +{ + QString sql = "SELECT ( col - 73016000000 ) FROM tab"; + bool res = parser3->parse(sql); + QVERIFY(res); +} + void ParserTest::initTestCase() { initKeywords(); -- cgit v1.2.3