diff --git a/README.md b/README.md index 6b4f720..c31d2de 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Because php-gtk is such a pain to compile on Windows, I've put together this pac ## PHP Requirements * Version 5.2 - 5.3.* -* PHP-Cario PECL extension +* PHP-Cairo PECL extension * [PHP-GTK](http://gtk.php.net) PHP Extension * Curl * OpenSSL diff --git a/src/common/db_pdo.php b/src/common/db_pdo.php index d2a51f8..e22b440 100644 --- a/src/common/db_pdo.php +++ b/src/common/db_pdo.php @@ -159,6 +159,6 @@ abstract class db_manip { * * @return string */ - abstract function create_table($name, $columns, $constraints, $indexes); + abstract function create_table($name, $columns, $constraints=array(), $indexes=array()); } // End of db_pdo.php \ No newline at end of file diff --git a/src/databases/firebird_manip.php b/src/databases/firebird_manip.php index f55b834..931786c 100644 --- a/src/databases/firebird_manip.php +++ b/src/databases/firebird_manip.php @@ -19,7 +19,7 @@ */ class firebird_manip extends db_manip{ - function create_table($name, $fields, $constraints=array()) + function create_table($name, $fields, $constraints=array(), $indexes=array()) { $sql = "CREATE TABLE {$name}"; } diff --git a/src/databases/mysql_manip.php b/src/databases/mysql_manip.php index 3561247..3820c51 100644 --- a/src/databases/mysql_manip.php +++ b/src/databases/mysql_manip.php @@ -17,7 +17,7 @@ */ class MySQL_manip extends db_manip{ - function create_table($name, $columns, $constraints, $indexes) + function create_table($name, $columns, $constraints=array(), $indexes=array()) { //TODO: implement } diff --git a/src/databases/odbc_manip.php b/src/databases/odbc_manip.php index 0f55e4f..f6d6f65 100644 --- a/src/databases/odbc_manip.php +++ b/src/databases/odbc_manip.php @@ -19,7 +19,7 @@ */ class ODBC_manip extends db_manip { - function create_table() + function create_table($name, $columns, $constraints=array(), $indexes=array()) { //ODBC can't know how to create a table return FALSE; diff --git a/src/databases/pgsql_manip.php b/src/databases/pgsql_manip.php index ace0c62..008246a 100644 --- a/src/databases/pgsql_manip.php +++ b/src/databases/pgsql_manip.php @@ -19,7 +19,7 @@ */ class pgSQL_manip extends db_manip { - function create_table($name, $columns, $constraints, $indexes) + function create_table($name, $columns, $constraints=array(), $indexes=array()) { //TODO: implement } diff --git a/src/databases/sqlite_manip.php b/src/databases/sqlite_manip.php index 3200663..c996881 100644 --- a/src/databases/sqlite_manip.php +++ b/src/databases/sqlite_manip.php @@ -26,7 +26,7 @@ class SQLite_manip extends db_manip { * @param array $indexes // column => index pairs * @return string */ - function create_table($name, $columns, $constraints, $indexes) + function create_table($name, $columns, $constraints=array(), $indexes=array()) { $column_array = array(); diff --git a/tests/test_dbs/FB_TEST_DB.FDB b/tests/test_dbs/FB_TEST_DB.FDB index a57eef1..cc2d286 100755 Binary files a/tests/test_dbs/FB_TEST_DB.FDB and b/tests/test_dbs/FB_TEST_DB.FDB differ