When i try to view the gallery, it displays error messages like this:

query: UPDATE prog_gallery_images SET `exif_date` = ":exif_date" WHERE `i_nid`=":nid"; in /home/shemgp/public_html/tests/drupal_galleries/drupal/sites/all/modules/prog_gallery/prog_gallery.module on line 1537.

I think that's because db_query should use %d, %s, etc. instead of :exif_date? Maybe that's for drupal 7?

This patch works for me. I'm using Postgres.

CommentFileSizeAuthor
prog_gallery-db_query.diff1.19 KBshemgp
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jānis Bebrītis’s picture

thanks, i`ll review it asap!

Jānis Bebrītis’s picture

I followed drupal coding standards when created this module, it suggested such syntax.

anyway, patch is applied and uploaded to cvs, thanks for contributing patch!

Jānis Bebrītis’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.