示例#1
0
        public void SelectRow_WrongUsing()
        {
            SQLite3Query sqlite = new SQLite3Query();

            Assert.IsTrue(sqlite.TestConnection(connectionString, true, false));
            Assert.IsNull(sqlite.SelectRow("SELECT f1 FROM WrongTable;"));
            Assert.IsNull(sqlite.SelectRow("SELECT f1 FROM TestTable UNION ALL SELECT f1 FROM TestTable;"));
        }
示例#2
0
        public void SelectRow()
        {
            SQLite3Query sqlite = new SQLite3Query();

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