Skip to content

Commit

Permalink
Added multi=True to creation execute call (pulumi#1206)
Browse files Browse the repository at this point in the history
Without this parameter, you get this error on `pulumi up`:
`error: Exception calling application: Use multi=True when executing multiple statements`
  • Loading branch information
MitchellGerdisch authored Apr 18, 2022
1 parent 90ae6ee commit 3245f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws-py-dynamicresource/mysql_dynamic_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def create(self, args):
host=args["server_address"],
database=args["database_name"])
cursor = connection.cursor()
cursor.execute(args["creation_script"])
cursor.execute(args["creation_script"], multi=True)
# The creation process is finished. We assign a unique ID to this resource,
# and return all the outputs required by the resource (in this case
# outputs are identical to the inputs)
Expand Down

0 comments on commit 3245f1f

Please sign in to comment.