Skip to content

Commit 591de7b

Browse files
committed
samples: cast float to int
1 parent 6e47aa9 commit 591de7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/samples/snippets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2056,7 +2056,7 @@ def update_venues(transaction):
20562056
# Sets the request tag to "app=concert,env=dev,action=update".
20572057
# This request tag will only be set on this request.
20582058
transaction.execute_update(
2059-
"UPDATE Venues SET Capacity = Capacity/4 WHERE OutdoorVenue = false",
2059+
"UPDATE Venues SET Capacity = CAST(Capacity/4 AS INT664) WHERE OutdoorVenue = false",
20602060
request_options={"request_tag": "app=concert,env=dev,action=update"}
20612061
)
20622062
print("Venue capacities updated.")

0 commit comments

Comments
 (0)