1--TEST-- 2odbc_rollback(): Basic test for odbc_rollback() 3--EXTENSIONS-- 4odbc 5--SKIPIF-- 6<?php include 'skipif.inc'; ?> 7--FILE-- 8<?php 9 10include 'config.inc'; 11 12$conn = odbc_connect($dsn, $user, $pass); 13odbc_exec($conn, 'CREATE TABLE rollback_table (test INT)'); 14 15odbc_autocommit($conn, false); 16odbc_exec($conn, 'INSERT INTO rollback_table VALUES(1)'); 17var_dump(odbc_rollback($conn)); 18 19$res = odbc_exec($conn, 'SELECT * FROM rollback_table'); 20var_dump(odbc_result($res, "test")); 21 22?> 23--CLEAN-- 24<?php 25require 'config.inc'; 26$conn = odbc_connect($dsn, $user, $pass); 27odbc_exec($conn, 'DROP TABLE rollback_table'); 28?> 29--EXPECT-- 30bool(true) 31bool(false) 32