示例#1
0
        public void TestRollback()
        {
            InsertValueInNewDb(false);

            var adapter = new MySQLCommandChannelFactory().Open(Credentials);

            Assert.AreEqual((long)0, adapter.FetchValue("SELECT COUNT(*) FROM test"));
        }
示例#2
0
        public void TestCommit()
        {
            InsertValueInNewDb(true);

            var adapter = new MySQLCommandChannelFactory().Open(Credentials);

            Assert.AreEqual("committed", adapter.FetchValue("SELECT reference FROM test LIMIT 1"));
        }