diff options
Diffstat (limited to 'ext/oci8/tests/create_table.inc')
| -rw-r--r-- | ext/oci8/tests/create_table.inc | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/ext/oci8/tests/create_table.inc b/ext/oci8/tests/create_table.inc index afd1fceb9..733598068 100644 --- a/ext/oci8/tests/create_table.inc +++ b/ext/oci8/tests/create_table.inc @@ -1,11 +1,13 @@ <?php - if ($c) { - $ora_sql = "DROP TABLE ".$schema.$table_name; - $statement = oci_parse($c, $ora_sql); - @oci_execute($statement); - - $ora_sql = "CREATE TABLE ".$schema.$table_name." (id NUMBER, value NUMBER, blob BLOB, clob CLOB, string VARCHAR(10))"; - $statement = oci_parse($c, $ora_sql); - oci_execute($statement); - } +if ($c) { + + + $stmtarray = array( + "DROP TABLE ".$schema.$table_name, + "CREATE TABLE ".$schema.$table_name." (id NUMBER, value NUMBER, blob BLOB, clob CLOB, string VARCHAR(10))" + ); + + oci8_test_sql_execute($c, $stmtarray); + +} ?> |
