diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-27 14:49:40 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-27 14:49:40 -0500 |
| commit | 516a442f233d90eb7b8bb844e2dea7865bb21f66 (patch) | |
| tree | bee884a5946bd240864a2e935185e3da16f887af /lib/sqlalchemy/cextension/resultproxy.c | |
| parent | 49dfeda6d7578aeae9ec954945cda38ee5aae6a9 (diff) | |
| download | sqlalchemy-516a442f233d90eb7b8bb844e2dea7865bb21f66.tar.gz | |
- reinstate "dont set up integer index in keymap if we're on cexts",
and this time also fix the cext itself to properly handle int vs. long
on py2k
Diffstat (limited to 'lib/sqlalchemy/cextension/resultproxy.c')
| -rw-r--r-- | lib/sqlalchemy/cextension/resultproxy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/cextension/resultproxy.c b/lib/sqlalchemy/cextension/resultproxy.c index 9c4d0c7e4..a87fe7b56 100644 --- a/lib/sqlalchemy/cextension/resultproxy.c +++ b/lib/sqlalchemy/cextension/resultproxy.c @@ -263,7 +263,7 @@ BaseRowProxy_subscript(BaseRowProxy *self, PyObject *key) #if PY_MAJOR_VERSION < 3 if (PyInt_CheckExact(key)) { index = PyInt_AS_LONG(key); - } + } else #endif if (PyLong_CheckExact(key)) { |
