This module will not install on a postgresql server.
* warning: pg_query() [function.pg-query]: Query failed: ERROR: syntax error at or near "not" LINE 1: CREATE TABLE if not exists field_dependencies ( ^ in C:\.........\includes\database.pgsql.inc on line 125.
* user warning: query: CREATE TABLE if not exists field_dependencies ( parent_field_name varchar(32) NOT NULL, child_field_name varchar(32) NOT NULL, parent_node_type_name varchar(32) NOT NULL, child_node_type_name varchar(32) NOT NULL, option_text varchar(255), put_after_parent boolean default 0, is_required boolean default 0, PRIMARY KEY(parent_field_name,child_field_name,parent_node_type_name,child_node_type_name) ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */; in C:\......\includes\database.pgsql.inc on line 144.
Comments
Comment #1
phayes commentedThe correct code for postgres is as follows:
put_after_parent and is_required need to be int, not bool, since you cannot assign a integer to a boolean.
Comment #2
phayes commentedMore problems. SQL should never use double quotes when referencing strings - this works in MySQL but is non-standard and breaks more strict SQL databases like postgreSQL. The code as it currently stands tells postgresql to check for a column named "options_onoff" etc - which doesnt exist and so returns an error. The following lines of code need to be changed as follows to replace all double-quotes as single quotes. This should make both postgreSQL and MySQL happy.
lines 165-173
line 207:
Comment #3
phayes commentedGreat module btw...
Comment #4
Tamar Badichi-Levy commentedThank you very much. I'll update the code in the next release.
Best wishes,
Ofir.