Skip to content

Stored procedure call from the python script not working. #19

Open
@vizzyno1

Description

@vizzyno1

Hello Team ,

I am trying to execute the Stored procedure in the Memsql Db from my python script.

Sample code as below:


conn = mysql.connector.connect(host=str(memsqlHostIP), port=memsqlHostPort, user=str(memsqlUserName), password=str(memsqlPassword),database=str(memsqlDatabase),allow_local_infile=True,autocommit=True)
mycursor = conn.cursor()

args = ('NFType_1','Instid1','{"user" : "Shrinidhi", "uid" : {"clientId" : 1, "Role" : "God", "id" : 327 }}','LSTM',1610096364,'XDFWFWfwfnkfn')


mycursor.callproc('INJEST_MODEL',args)

for result in mycursor.stored_results():
   print(result.fetchall())

But i am getting the below error:-

1706 (HY000): Feature 'user-defined variables without a SET clause or WHERE clause' is not supported by MemSQL.

What could be the possible solution for this.?

Thanks,
Vijayant

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions