fixed problem about excutesql(as_dict=True) and ambiguous column names, thanks Anthony
This commit is contained in:
@@ -1 +1 @@
|
||||
Version 2.8.2-stable+timestamp.2014.01.03.21.30.13
|
||||
Version 2.8.2-stable+timestamp.2014.01.03.21.59.04
|
||||
|
||||
@@ -8453,6 +8453,9 @@ def index():
|
||||
columns = adapter.cursor.description
|
||||
# reduce the column info down to just the field names
|
||||
fields = colnames or [f[0] for f in columns]
|
||||
if len(fields) != len(set(fields)):
|
||||
raise RuntimeError(
|
||||
"as_dict=True not supported if ambiguous column names")
|
||||
# will hold our finished resultset in a list
|
||||
data = adapter._fetchall()
|
||||
# convert the list for each row into a dictionary so it's
|
||||
|
||||
Reference in New Issue
Block a user