I worked it out, the %d placeholder is for an integer, so if you change it to %s for a string it all works fine:
db_query("UPDATE {uc_product_stock} SET stock = %d WHERE sku = '%s'"
I was showing my Drupal ignorance there!
|
Ubercart |
|
|
|
||
Non-numeric skus
Wed, 09/30/2009 - 11:42
#1
Non-numeric skus
I worked it out, the %d placeholder is for an integer, so if you change it to %s for a string it all works fine: db_query("UPDATE {uc_product_stock} SET stock = %d WHERE sku = '%s'" I was showing my Drupal ignorance there! Stock & Price CSV Updater By: jorditr (12 replies) Thu, 08/06/2009 - 15:14
|
|