Jump to content

Calling MySQL Stored Procedures from LabVIEW


Recommended Posts

Does anyone have experience calling MySQL stored procedures from LabVIEW. MySQL periodically closes the connection to my LV8 client after calling a Stored Procedure. Results from MySQL Stored Procedures have to be processed differently from simple queries. Not doing so violates the client-server protocol causing MySQL to "close" the connection. One way to reproduce the issue: Run a simple "select" query after calling a stored procedure, MySQL immediately closes the connection.

The MySQL documentation states that the CLIENT_MULTI_RESULTS flag must be set and that "mysql_more_results()" and "mysql_move_result()" must be used. I know how to do this in C. How do we implement this in LabVIEW?

Any help would be greatly appreciated.

CY

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.