From d5f1dcde28fcd7e12af4bf5c4f6494bb2cf6df0a Mon Sep 17 00:00:00 2001 From: Nikolaos Dimopoulos Date: Tue, 9 Jul 2013 17:21:28 -0400 Subject: [PATCH] Revert "Added boolean type to database dialects." This reverts commit 1dbc01e1bff9e26cba9f8e0be589e71b318d5a0f. Commit accidentally merged into master --- ext/db/dialect/mysql.c | 7 +------ ext/db/dialect/oracle.c | 7 +------ ext/db/dialect/postgresql.c | 5 ----- ext/db/dialect/sqlite.c | 5 ----- 4 files changed, 2 insertions(+), 22 deletions(-) diff --git a/ext/db/dialect/mysql.c b/ext/db/dialect/mysql.c index 75b13bb48da..1855228af42 100755 --- a/ext/db/dialect/mysql.c +++ b/ext/db/dialect/mysql.c @@ -163,12 +163,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Mysql, getColumnDefinition){ } break; - - case 8: - PHALCON_INIT_VAR(column_sql); - ZVAL_STRING(column_sql, "TINYINT(1)", 1); - break; - + default: PHALCON_THROW_EXCEPTION_STR(phalcon_db_exception_ce, "Unrecognized MySQL data type"); return; diff --git a/ext/db/dialect/oracle.c b/ext/db/dialect/oracle.c index 66f0bb5b598..3a10891881b 100644 --- a/ext/db/dialect/oracle.c +++ b/ext/db/dialect/oracle.c @@ -135,12 +135,7 @@ PHP_METHOD(Phalcon_Db_Dialect_Oracle, getColumnDefinition){ PHALCON_INIT_NVAR(column_sql); PHALCON_CONCAT_SVSVS(column_sql, "FLOAT(", size, ",", scale, ")"); break; - - case 8: - PHALCON_INIT_VAR(column_sql); - ZVAL_STRING(column_sql, "TINYINT(1)", 1); - break; - + default: PHALCON_THROW_EXCEPTION_STR(phalcon_db_exception_ce, "Unrecognized Oracle data type"); return; diff --git a/ext/db/dialect/postgresql.c b/ext/db/dialect/postgresql.c index 779c291dd5a..d89bc2d07b3 100644 --- a/ext/db/dialect/postgresql.c +++ b/ext/db/dialect/postgresql.c @@ -130,11 +130,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Postgresql, getColumnDefinition){ PHALCON_INIT_NVAR(column_sql); ZVAL_STRING(column_sql, "FLOAT", 1); break; - - case 8: - PHALCON_INIT_VAR(column_sql); - ZVAL_STRING(column_sql, "SMALLINT(1)", 1); - break; default: PHALCON_THROW_EXCEPTION_STR(phalcon_db_exception_ce, "Unrecognized PostgreSQL data type"); diff --git a/ext/db/dialect/sqlite.c b/ext/db/dialect/sqlite.c index 7de011cf178..62afc219f5e 100644 --- a/ext/db/dialect/sqlite.c +++ b/ext/db/dialect/sqlite.c @@ -131,11 +131,6 @@ PHP_METHOD(Phalcon_Db_Dialect_Sqlite, getColumnDefinition){ PHALCON_INIT_NVAR(column_sql); ZVAL_STRING(column_sql, "FLOAT", 1); break; - - case 8: - PHALCON_INIT_VAR(column_sql); - ZVAL_STRING(column_sql, "TINYINT(1)", 1); - break; default: PHALCON_THROW_EXCEPTION_STR(phalcon_db_exception_ce, "Unrecognized SQLite data type");