fixed error message, thanks Anthony
This commit is contained in:
1 parent
efcf8c0c95
commit
76b3906ade
2 files changed
+3
-2
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.8.2-stable+timestamp.2014.01.03.21.59.04
|
Version 2.8.2-stable+timestamp.2014.01.04.20.18.32
|
||||||
+2
-1
@@ -8455,7 +8455,8 @@ def index():
|
|||||||
fields = colnames or [f[0] for f in columns]
|
fields = colnames or [f[0] for f in columns]
|
||||||
if len(fields) != len(set(fields)):
|
if len(fields) != len(set(fields)):
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
"as_dict=True not supported if ambiguous column names")
|
"Result set includes duplicate column names."
|
||||||
|
"Specify unique column names using the 'colnames' argument")
|
||||||
# will hold our finished resultset in a list
|
# will hold our finished resultset in a list
|
||||||
data = adapter._fetchall()
|
data = adapter._fetchall()
|
||||||
# convert the list for each row into a dictionary so it's
|
# convert the list for each row into a dictionary so it's
|
||||||
|
|||||||
Reference in new issue
Block a user