Exemple #1
0
        public void ChangeData_CreateTable()
        {
            OleDbQuery odd = new OleDbQuery();

            Assert.IsTrue(odd.TestConnection(connectionString, true, false));
            if (odd.SelectTable("SELECT * FROM test;") != null)
            {
                odd.ChangeData(sqlDropTestTable);
            }
            Assert.GreaterOrEqual(0, odd.ChangeData(sqlTestTableStatement));
            Assert.IsNullOrEmpty(odd.LastOperationErrorMessage);
        }
Exemple #2
0
        public void ChangeData_CreateTable_WithoutInitialization()
        {
            OleDbQuery odd = new OleDbQuery();

            Assert.AreEqual(-1, odd.ChangeData(sqlTestTableStatement));
            Assert.IsNotNullOrEmpty(odd.LastOperationErrorMessage);
        }