inclusao de codigo para pular teste de rollback em Mysql versao 4.0

This commit is contained in:
eduquintao 2004-12-14 19:25:56 +00:00
parent f63d98c1f2
commit 8e399a1e66

View File

@ -343,6 +343,11 @@ end
--------------------------------------------------------------------- ---------------------------------------------------------------------
--------------------------------------------------------------------- ---------------------------------------------------------------------
function rollback () function rollback ()
if string.sub(luasql._MYSQLVERSION, 1, 3) == "4.0" then
io.write("skipping rollback test (mysql version 4.0.x)")
return
end
CONN:setautocommit (false) -- == begin transaction CONN:setautocommit (false) -- == begin transaction
-- insert a record and commit the operation. -- insert a record and commit the operation.
assert2 (1, CONN:execute ("insert into t (f1) values ('a')")) assert2 (1, CONN:execute ("insert into t (f1) values ('a')"))