Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: sql/connection_unittest.cc

Issue 10989063: Changed DB to store node positions as Ordinals. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Minor changes and corrections Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sql/connection_unittest.cc
diff --git a/sql/connection_unittest.cc b/sql/connection_unittest.cc
index e50043fa940e731b9fe9dde503f5757cc60a2642..9e2e053fdb45687764cf9efd81161bfdd8497045 100644
--- a/sql/connection_unittest.cc
+++ b/sql/connection_unittest.cc
@@ -110,6 +110,14 @@ TEST_F(SQLConnectionTest, DoesStuffExist) {
EXPECT_FALSE(db().DoesColumnExist("bar", "b"));
}
+TEST_F(SQLConnectionTest, GetColumnType) {
+ ASSERT_TRUE(db().Execute("CREATE TABLE foo (a bigint, b varchar)"));
+
+ const char *table_name = "foo";
+ EXPECT_EQ(db().GetColumnType(table_name, 0), "bigint");
+ EXPECT_EQ(db().GetColumnType(table_name, 1), "varchar");
Scott Hess - ex-Googler 2012/10/02 03:58:47 "bigint" and "varchar" are meaningless to SQLite,
+}
+
TEST_F(SQLConnectionTest, GetLastInsertRowId) {
ASSERT_TRUE(db().Execute("CREATE TABLE foo (id INTEGER PRIMARY KEY, value)"));

Powered by Google App Engine
This is Rietveld 408576698