Does Prefect with MySQL support this type of store...
# prefect-community
j
Does Prefect with MySQL support this type of stored procedure? I got an error when the code runs fine querying our database directly -- ``SET @Date1 := MAKEDATE(YEAR(CURDATE()), 1) + INTERVAL QUARTER(CURDATE()) QUARTER - INTERVAL 1 QUARTER;`
SET procedure2 := bla bla
etc..
k
I guess the question is if
pymysql
does. What is your error?
j
Copy code
pymysql.err.ProgrammingError: (1064, "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 'SET @includeLostPipeline := FALSE' at line 2")
k
You stored proc has no parameters right?
j
We later pass through the things defined up front (e.x. "Date1") into where clauses
e.x. ``, @thing:= IF(@thing2= s.Id, @thing + 1, 1) AS ranking``
k
I think this question is better for pymysql. I would suggest you create an issue there cuz they’d be able to help you way better
Under the hood we just do this if you are using our task
j
Okay that's great, I'll ping them. Thank you!