1064 You have an error in your SQL syntax

Pagina: 1
Acties:

  • blueline
  • Registratie: Juni 2001
  • Laatst online: 05-02 15:45
Hallo,

Ik krijg deze error bij os-commerce.

Dit is bij het betalen. Nu zijn er meerdere fixes maar die heb ik al toegepast maar dat helpt niet.
Nu heb ik het vermoeden dat het aan versie 5 van SQL ligt. Maar mijn kennis ligt nu ook niet zo hoog.

Ik krijg deze melding.

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL
server version for the right syntax to use near 'now(),'O:12:"shoppingcart":5:{s:8:"contents";a:1:{i:30;a:1:{s:3:

INSERT INTO TABLE_IDEAL_PAYMENTS (transaction_id, entrancecode, issuer_id, order_id, payment_status, date_last_check,cart_contents) values (0, '5d51bcac5b21016d26d2ed8788f7c6d5',0151,55, ,now(),'O:12:"shoppingcart":5:{s:8:"contents";a:1:{i:30;a:1:{s:3:"qty";s:1:"1";}}s:5:"total";d:1;s:6:"weight";d:0;s:6:"cartID";N;s:12:"content_type";s:8:"physical";}')

hebben jullie hier een oplossing/oorzaak voor ?

The ones with the greatest power protect those who don't.


  • Cyphax
  • Registratie: November 2000
  • Nu online

Cyphax

Moderator LNX
Dit ligt niet aan MySQL 5, dit zou met elke versie van MySQL of elke SQL server for that matter misgaan omdat er een waarde mist.
SQL:
1
INSERT INTO TABLE_IDEAL_PAYMENTS (transaction_id, entrancecode, issuer_id, order_id, payment_status, date_last_check,cart_contents) values (0, '5d51bcac5b21016d26d2ed8788f7c6d5',0151,55, ,now(),'O:12:"shoppingcart":5:{s:8:"contents";a:1:{i:30;a:1:{s:3:"qty";s:1:"1";}}s:5:"total";d:1;s:6:"weight";d:0;s:6:"cartID";N;s:12:"content_type";s:8:"physical";}')

Bij "now()" zie j staan "55, , now()" en daar had een waarde moeten staan. Dit gaat echt mis in de applicatie, misschien is er een veldje leeggelaten in de UI?

Saved by the buoyancy of citrus