If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / PayPal Express Checkout support / SQL error on customer_notified field

SQL error on customer_notified field

Locked

Started by ettendu on 23 Jan 2007, 12:00 AM · Views: 2,229

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
23 Jan 2007, 12:00 AM
#1
ettendu avatar

ettendu

New Zenner

Join Date:
Mar 2006
Posts:
22
Plugin Contributions:
0

SQL error on customer_notified field

Not sure if anyone encounter this, but when I used the paypal express, after checkout process finish, and we are ready to insert the order into database
TABLE_ORDERS_STATUS_HISTORY, I got an error about invalid value is being set
for 'customer_notified' field.

Further investigation told me that

In paypalwpp.php
I saw the following statement to set the 'customer_notified'
'customer_notified' => false

In my case this is setting 'customer_notified' to '' for some reason.
I need to set
'customer_notified' => '0'

then the paypal express worked.

I am using MySQL 5.0.18-nt, not sure if that has something to do with this.

23 Jan 2007, 8:24 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: SQL error on customer_notified field

Yes, that's likely a result of your MySQL version enforcing data-type strictness.

Feel free to change the 'false' to '0'.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Jan 2007, 6:12 AM
#3
ettendu avatar

ettendu

New Zenner

Join Date:
Mar 2006
Posts:
22
Plugin Contributions:
0

Re: SQL error on customer_notified field

Thanks Dr. Byte,

If that is indeed caused by my version of MySQL, I would suggest making this changes from false to '0' even for your version. Cause setting it to '0' will work for other version of MySQL too.

Thanks again for confirming that.

Ettendu

24 Jan 2007, 7:06 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: SQL error on customer_notified field

Yes -- it's already been done for future release. Thanks for pointing it out. :D

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.