Hello guys!
I am currently working on a module that adds VAT-ID functionality to übercart. So I have added a field "VATID" to the uc_orders table.
Now I have realized that uc_order.module doesn't explicitely quote fieldnames when inserting data (line 2489):
db_query("INSERT INTO {uc_orders} VALUES (%d, %d, '%s', 0, '%s', '', '', '', "
."'', '', '', '', 0, '', 0, '', '', '', '', '', '', '', 0, 0, 0, '', "
."%d, %d)", $order->order_id, $uid, $order->order_status, $email, time(), time());
so i get an error (row count doesn't match...) after modifying table structure.
Perhaps it is not desired to alter existing table structures. Otherwise I would recommend to simply quote the fieldnames in the query.
INSERT INTO {uc_orders} (field1, field2, ...) VALUES (%d, %d, '%s', 0, ...)
regards





I can't wait to have hair that long! (Although mine will probably be a poofy mess with curls/waves.)

Joined: 01/17/2008