Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3679

DBKit crash on SaveRow - MySQL

$
0
0

Hi all,
I’ve not used XOJO for many years, so forgive my rustiness.

I’ve tried to set up a web app that reads from a MySQL database using DBKit.
I’ve set this up so that it displays all records correctly with a QueryRowsListBox and individual fields and popups to delve into details of each row - this all works exceptionally well.

I’ve also added Edit/Cancel/Delete/New DBKit buttons as per the tutorial.
Everything works well until I hit “Done” to indicate that an edited record should be saved.

RowSet(row).SaveRow in the SaveRow() function crashes with a DatabaseException error:

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 'primary='',secondaryIP='',secondaryOP='Indicated',contexts='ECG/Arrhythmia ; ICC' at line 1

I cannot see what hte issue is; all controls seem wired up correctly as data is displayed correctly - and for the life of me I cannot locate the SQL that is actually being submitted to the MySQL server from DBKit.

Any suggestions?

Many thanks
Stam

3 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 3679

Trending Articles