On a PostgreSQL database the "%s" in the hook_insert() function causes the query to fail because they are interpreted as a column name. These double quotes around the URL must be single quotes.
On a PostgreSQL database the "%s" in the hook_insert() function causes the query to fail because they are interpreted as a column name. These double quotes around the URL must be single quotes.
Comments
Comment #1
koens commentedObviously the hook_update fails for the same reason.
Solution replace "%s" by \'%s\' in both hook_insert and hook_update
Comment #2
Bèr Kessels commentedWeblinks is superceded by http://drupal.org/project/links. That module even has an upgrade path from weblinks.