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
Kevin Kho
02/16/2022, 8:12 PM
I guess the question is if
pymysql
does. What is your error?
j
Jason Motley
02/16/2022, 8:15 PM
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
Kevin Kho
02/16/2022, 8:15 PM
You stored proc has no parameters right?
j
Jason Motley
02/16/2022, 8:17 PM
We later pass through the things defined up front (e.x. "Date1") into where clauses
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.