MySQL Forums
Forum List  »  MySQL Workbench

Lua Script - openConnection
Posted by: Peter Cosenza
Date: June 20, 2014 04:45PM

Hi,
I am new to Workbench scripting and having trouble writing a basic Lua script to open a connection. Below is the script which yields this error:
luart: error: stdin:9: bad argument #3 to 'callFunction' (list expected, got no value)

Error executing script.



-- MySQL Workbench lua script
-- <description>
-- Written in MySQL Workbench 6.1.4


rdbmsConn = grtV.newObj("db.mgmt.Connection",
{name="rdbmsConnection", owner=app}) --owner=app

conn_id = grtM.callFunction ("DbMySQLQuery", "openConnection", rdbmsConn)
print(conn_id)
grtM.callFunction ("DbMySQLQuery", "closeConnection", conn_id)

Options: ReplyQuote


Subject
Views
Written By
Posted
Lua Script - openConnection
1084
June 20, 2014 04:45PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.