Skip to content

Commit 3245f1f

Browse files
Added multi=True to creation execute call (pulumi#1206)
Without this parameter, you get this error on `pulumi up`: `error: Exception calling application: Use multi=True when executing multiple statements`
1 parent 90ae6ee commit 3245f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-py-dynamicresource/mysql_dynamic_provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def create(self, args):
3838
host=args["server_address"],
3939
database=args["database_name"])
4040
cursor = connection.cursor()
41-
cursor.execute(args["creation_script"])
41+
cursor.execute(args["creation_script"], multi=True)
4242
# The creation process is finished. We assign a unique ID to this resource,
4343
# and return all the outputs required by the resource (in this case
4444
# outputs are identical to the inputs)

0 commit comments

Comments
 (0)