예제 #1
0
        public void SelectColumn_WrongUsing()
        {
            SQLite3Query sqlite = new SQLite3Query();

            Assert.IsTrue(sqlite.TestConnection(connectionString, true, false));
            Assert.IsNull(sqlite.SelectColumn("SELECT f1 FROM WrongTable;"));
            Assert.IsNull(sqlite.SelectColumn("SELECT f1,f2 FROM TestTable;"));
        }
예제 #2
0
        public void SelectColumn()
        {
            SQLite3Query sqlite = new SQLite3Query();

            Assert.IsTrue(sqlite.TestConnection(connectionString, true, false));
            Assert.IsNotNull(sqlite.SelectColumn("SELECT f1 FROM TestTable;"));
            Assert.IsNotNull(sqlite.SelectColumn("SELECT * FROM TestTable;", 0));
        }