Skip to content

Commit 48ca2e0

Browse files
author
Kareem Zidane
committed
added comment about multi statements
1 parent d5eda23 commit 48ca2e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cs50/sql.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ def process(value):
146146
return process(value)
147147

148148
# Allow only one statement at a time
149+
# SQLite does not support executing many statements
150+
# https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor.execute
149151
if len(sqlparse.split(text)) > 1:
150152
raise RuntimeError("too many statements at once")
151153

0 commit comments

Comments
 (0)