Oid is a reserved column name on PostgreSQL, and when enabled the i18nstrings module:
* warning: pg_query() [function.pg-query]: Query failed: ERROR: column name "oid" conflicts with a system column name in /www/includes/database.pgsql.inc on line 138.
* user warning: query: CREATE TABLE i18n_strings ( lid int NOT NULL default 0, oid int NOT NULL default 0, type varchar(255) NOT NULL default '', property varchar(255) NOT NULL default 'default', PRIMARY KEY (lid) ) in /www/includes/database.inc on line 514.
Please, rename the column.
Comments
Comment #1
hass commentedMaybe we only need to add the oid into square brackets [oid]... I would wonder if you are not able to use this column name. Do you have any documentation?
Comment #2
zoltán balogh commentedThe square brackets is not enough, because the name "oid" is a predefined system column.
Documentation: http://www.postgresql.org/docs/8.3/static/ddl-system-columns.html
Maybe a good solution is an issue to drupal core.
When the user using the postres, add "WITHOUT OIDS" clausa to all CREATE TABLE commands.
I created the table manually with "WITHOUT OIDS", and the modul is works fine.
Comment #3
hass commentedhttp://www.postgresql.org/docs/8.3/static/datatype-oid.html
Is this a standard setting or your custom server configuration? I also thing we should ask the core developers to throw an error if such a columns is used... or at leased - CODER.module should throw errors!
Comment #4
hass commentedCoder case #314422: Database schema validation / reserved name validation
Comment #5
zoltán balogh commentedIn the previous releases of Postgres (7.x series) WITH OIDS was the default. You can read this in the documentation of the version 7.4, at http://www.postgresql.org/docs/7.4/static/datatype-oid.html
My website provider using the 7.x release, so my default is WITH OIDS.
Comment #6
jose reyero commentedRenamed the field to 'objectid'.
Thanks for all the information here. I'm not using pgsql, so I'm in the dark when it comes to that db.
Please, confirm it works (run update.php)
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.