Skip to content

Commit 431a432

Browse files
committed
added comments
1 parent 66a7bff commit 431a432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cs50/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def execute(self, sql, *args, **kwargs):
120120
if len(args) > 0 and len(kwargs) > 0:
121121
raise RuntimeError("cannot pass both named and positional parameters")
122122

123-
# Infer command
123+
# Infer command from (unflattened) statement
124124
for token in statements[0]:
125125
if token.ttype in [sqlparse.tokens.Keyword.DDL, sqlparse.tokens.Keyword.DML]:
126126
command = token.value.upper()

0 commit comments

Comments
 (0)