agentphoenix / simm-ms

Automatically exported from code.google.com/p/simm-ms
0 stars 0 forks source link

Setting LOA won't work #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Looks like PHP is passing the value as an int when MySQL wants a string but
behavior is strange. When user inputs loa as 0 the database sets to 0, when
the user inputs loa as 1 the database sets to 0, but when the users inputs
loa as 2 the database sets to 1. The only thing I can think is MySQL is
taking the value as a bool but if that were the case then 1 should equate
to 1 but it doesn't.

If you write the SQL statement as loa = '%s' instead of loa = %s it works.
Not sure if its the most elegant solution but it works.

Original issue reported on code.google.com by david.va...@gmail.com on 4 Aug 2008 at 10:43

GoogleCodeExporter commented 9 years ago
Fixed in r634

Original comment by david.va...@gmail.com on 4 Aug 2008 at 10:47

GoogleCodeExporter commented 9 years ago
Additional fix in r638

Original comment by david.va...@gmail.com on 16 Aug 2008 at 9:40