Ejemplo n.º 1
0
        public void SelectRow_WrongUsing()
        {
            OleDbQuery odd = new OleDbQuery();

            Assert.IsTrue(odd.TestConnection(connectionString, true, false));
            Assert.IsNull(odd.SelectRow("SELECT f1 FROM WrongTable;"));
            Assert.IsNull(odd.SelectRow("SELECT f1 FROM TestTable UNION ALL SELECT f2 FROM TestTable;"));
        }
Ejemplo n.º 2
0
        public void SelectRow()
        {
            OleDbQuery odd = new OleDbQuery();

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