mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fix SA2.0 error: wrap sql in text()
This commit is contained in:
@@ -976,7 +976,7 @@ WHERE user_id = :user_id and quota_source_label = :label
|
||||
"user_id": self.id,
|
||||
"label": quota_source_label,
|
||||
}
|
||||
row = sa_session.execute(statement, params).fetchone()
|
||||
row = sa_session.execute(text(statement), params).fetchone()
|
||||
if row is not None:
|
||||
rval = row[0]
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user