ERROR:

    * warning: pg_query() [function.pg-query]: Query failed: ERROR: column "1" does not exist in /company/users/daniel/public_html/cms/drupal-6.1/includes/database.pgsql.inc on line 138.
    * user warning: query: SELECT * FROM drupal_supernav_user_settings WHERE uid="1" in /company/users/daniel/public_html/cms/drupal-6.1/sites/all/modules/supernav/supernav.module on line 218.
    * warning: pg_query() [function.pg-query]: Query failed: ERROR: column "1" does not exist in /company/users/daniel/public_html/cms/drupal-6.1/includes/database.pgsql.inc on line 138.
    * user warning: query: SELECT * FROM drupal_supernav_user_settings WHERE uid="1" in /company/users/daniel/public_html/cms/drupal-6.1/sites/all/modules/supernav/supernav.module on line 218.

Example:

Line: 217

$sql = 'SELECT * FROM {supernav_user_settings} WHERE uid="%d" ';   #bad SQL 

double commas is taken as column!!
please change all double commas to single commas in all SQLs

$sql = "SELECT * FROM {supernav_user_settings} WHERE uid='%d' ";  #SQL is OK

Comments

kevinwal’s picture

StatusFileSize
new99.72 KB

I've fixed the 5.x version for postgreSQL. It's functioning properly for me although I don't have time to do a real test. Please test this before using!

kanonier’s picture

StatusFileSize
new105.36 KB

Also you need change your INSERT-queries from style:
INSERT INTO tablename SET columnname='columnvalue'
to style:
INSERT INTO tablename(columnname) VALUES('columnvalue')

first style don't working with postgresql. And another thing - not needed quotas near values for integer columns.

In attachement - my patched 6th version. Not good way - I'm replace double-quoting by str_replace :) For me it was more easy :)

chrisshattuck’s picture

Please see http://drupal.org/node/285027#comment-1094346. I may need to do some work on the new module to work with Postgresql. Thank you for the patch work!

kevinwal’s picture

Status: Active » Closed (fixed)