You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
below is the example of SQL query which produces KeyError:
db.execute("SELECT col1,col2 FROM table WHERE col3=:email AND col4=:email AND col5=:dob", email=email, dob=dob)
Here, the same keyword argument :email is used twice in the query but it raises KeyError in cs50 7.0.1 but it was working fine previously.
Using '?' positional arguments works fine.
The text was updated successfully, but these errors were encountered:
below is the example of SQL query which produces KeyError:
db.execute("SELECT col1,col2 FROM table WHERE col3=:email AND col4=:email AND col5=:dob", email=email, dob=dob)
Here, the same keyword argument :email is used twice in the query but it raises KeyError in cs50 7.0.1 but it was working fine previously.
Using '?' positional arguments works fine.
The text was updated successfully, but these errors were encountered: