File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 16
16
package_dir = {"" : "src" },
17
17
packages = ["cs50" ],
18
18
url = "https://github.com/cs50/python-cs50" ,
19
- version = "9.2.0 "
19
+ version = "9.2.1 "
20
20
)
Original file line number Diff line number Diff line change @@ -476,7 +476,7 @@ def __escape(value):
476
476
elif value is None :
477
477
return sqlparse .sql .Token (
478
478
sqlparse .tokens .Keyword ,
479
- sqlalchemy .types . NullType (). literal_processor ( self . _engine . dialect )( value ))
479
+ sqlalchemy .null ( ))
480
480
481
481
# Unsupported value
482
482
else :
Original file line number Diff line number Diff line change 10
10
logging .getLogger ("cs50" ).disabled = False
11
11
logging .getLogger ("cs50" ).setLevel (logging .ERROR )
12
12
13
- db .execute ("CREATE TABLE IF NOT EXISTS bar (firstname STRING UNIQUE)" )
13
+ db .execute ("DROP TABLE IF EXISTS bar" )
14
+ db .execute ("CREATE TABLE bar (firstname STRING UNIQUE)" )
14
15
15
- db .execute ("INSERT INTO bar VALUES (?)" , "baz" )
16
+ db .execute ("INSERT INTO bar VALUES (?)" , None )
16
17
db .execute ("INSERT INTO bar VALUES (?)" , "baz" )
17
18
db .execute ("INSERT INTO bar VALUES (?)" , "qux" )
18
19
db .execute ("SELECT * FROM bar WHERE firstname IN (?)" , ("baz" , "qux" ))
19
- db .execute ("DELETE FROM bar" )
20
+ print (db .execute ("SELECT * FROM bar" ))
21
+ #db.execute("DELETE FROM bar")
20
22
21
23
"""
22
24
You can’t perform that action at this time.
0 commit comments