cursor
This commit is contained in:
@@ -40,7 +40,8 @@ class Members:
|
|||||||
# x=["1"]
|
# x=["1"]
|
||||||
sqv = "SELECT * FROM members WHERE username='"+username+"'"
|
sqv = "SELECT * FROM members WHERE username='"+username+"'"
|
||||||
with db:
|
with db:
|
||||||
with db.cursor(cursor_factory=NamedTupleCursor) as cursor:
|
#with db.cursor(cursor_factory=NamedTupleCursor) as cursor:
|
||||||
|
with db.cursor() as cursor:
|
||||||
cursor.execute(sqv)
|
cursor.execute(sqv)
|
||||||
#cursor.execute(sqv, x)
|
#cursor.execute(sqv, x)
|
||||||
member = cursor.fetchall()
|
member = cursor.fetchall()
|
||||||
|
|||||||
Reference in New Issue
Block a user