Back to index

php5  5.3.10
Functions | Variables
testdb.inc File Reference

Go to the source code of this file.

Functions

 init_db ()
 cleanup_db ()

Variables

 $user = 'SYSDBA'
 $password = 'masterkey'

Function Documentation

Definition at line 25 of file testdb.inc.

{
       global $test_base;
    
       $r = ibase_connect($test_base);
       ibase_drop_db($r);
}
init_db ( )

Definition at line 11 of file testdb.inc.

{
       global $test_base, $user, $password;

       $test_db = ibase_query(IBASE_CREATE,sprintf("CREATE DATABASE '%s' USER '%s' PASSWORD '%s'",
              $test_base, $user, $password));
       $tr = ibase_trans($test_db);
       ibase_query($tr,"create table test1 (i integer, c varchar(100))");
       ibase_commit_ret($tr);
       ibase_query($tr,"insert into test1(i, c) values(1, 'test table not created with isql')");
       ibase_commit($tr);
       ibase_close($test_db);
}

Variable Documentation

$password = 'masterkey'

Definition at line 4 of file testdb.inc.

$user = 'SYSDBA'

Definition at line 3 of file testdb.inc.