Database layer?
Posted: Sun Aug 14, 2005 9:23 pm
How is multi-DB handled?
I see that PostgreSQL has a number of issues.. starting with the way tables are defined.
Is there a DB layer?
I am no MySQL user, but I would be surprised if one had to cast a default in MysQL.
For example looking at one of the tables created by serendipity in my PostgreSQL DB I see
default 0::smallint
show_childpages | smallint | not null default 0::smallint
The casting to smallint, in my opinion, is not needed (for sure it is NOT needed in PostgreSQL)
Also I have seen in several parts of the code surrounding integers with quotes.. Numbers do not need to be surrounded by quotes.
WRONG:
inser into table_abc (int_field) value ('123')
CORRECT:
inser into table_abc (int_field) value (123)
I see that PostgreSQL has a number of issues.. starting with the way tables are defined.
Is there a DB layer?
I am no MySQL user, but I would be surprised if one had to cast a default in MysQL.
For example looking at one of the tables created by serendipity in my PostgreSQL DB I see
default 0::smallint
show_childpages | smallint | not null default 0::smallint
The casting to smallint, in my opinion, is not needed (for sure it is NOT needed in PostgreSQL)
Also I have seen in several parts of the code surrounding integers with quotes.. Numbers do not need to be surrounded by quotes.
WRONG:
inser into table_abc (int_field) value ('123')
CORRECT:
inser into table_abc (int_field) value (123)