T
Size: a a a
T
S
def update_await_text(new_value, tg_id):
t = (new_value, tg_id)
connect_str = create_connection(db_host, db_username, db_password, db_name)
cursor = connect_str.cursor()
if (cursor.execute("UPDATE posts SET content = ? WHERE uid = ?;", t)):
return True
cursor.close()
connect_str.commit()
connect_str.close()
S
T
T
def update_await_text(new_value, tg_id):
t = (new_value, tg_id)
connect_str = create_connection(db_host, db_username, db_password, db_name)
cursor = connect_str.cursor()
if (cursor.execute("UPDATE posts SET content = ? WHERE uid = ?;", t)):
return True
cursor.close()
connect_str.commit()
connect_str.close()
S
T
def update_await_text(new_value, tg_id):
t = (new_value, tg_id)
connect_str = create_connection(db_host, db_username, db_password, db_name)
cursor = connect_str.cursor()
if (cursor.execute("UPDATE posts SET content = ? WHERE uid = ?;", t)):
return True
cursor.close()
connect_str.commit()
connect_str.close()
S
S
S
exception=ProgrammingError(-1, 'Not all parameters were used in the SQL statement', None)>
S
S
T
exception=ProgrammingError(-1, 'Not all parameters were used in the SQL statement', None)>
S
S
S
T
S
def update_await_text(new_value, tg_id):
t = (new_value, tg_id)
connect_str = create_connection(db_host, db_username, db_password, db_name)
cursor = connect_str.cursor()
if (cursor.execute("UPDATE posts SET content = ? WHERE uid = ?;", t)):
return True
cursor.close()
connect_str.commit()
connect_str.close()
ЕП
if (cursor.execute("UPDATE posts SET content = ? WHERE uid = ?;", t)):
return True
cursor.close()
S