Error upon creation of node
Amitaibu - March 16, 2008 - 08:16
| Project: | Unique field |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | detour |
| Status: | closed |
Jump to:
Description
warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in C:\wamp\www\D5\sites\all\modules\unique_field\unique_field.module on line 206.

#1
Same here, not only does that warning appear, the field is not unique. I was able to create 2 nodes with same field value
#2
This likely had to do with my use of the database-specific function mysql_fetch_object instead of Drupal's abstraction layer function db_fetch_object. This is changed in the latest version (dated 2008-October-25).
#3
Automatically closed -- issue fixed for two weeks with no activity.