Drupal user and node modules attempt to insert a blank string ('') in when the input is not specified for an integer column. MySQL allows this but not PostgreSQL. This results in a DB error.
This problem was found in node.module and user.module.
Some discussion of this issue exists in http://drupal.org/node/27870
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | pg_query.patch.txt | 2.16 KB | Nimish P |
Comments
Comment #1
Nimish P commentedA patch that includes fix for the Drupal core modules - user.module and node.module.
Works for Drupal 4.6.6.
Comment #2
Nimish P commentedComment #3
markus_petrux commentedI believe it would be best to use %d for integers, rather than '%s'
Comment #4
magico commentedWould this be a much wider problem related to postgresql support?
Comment #5
magico commentedClosing due the the low interest in this.