diff options
| author | Federico Di Gregorio <fog@initd.org> | 2006-10-21 07:33:44 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2006-10-21 07:33:44 +0000 |
| commit | ac5a747e953944b97e1c07c4abae8aa6124a93ce (patch) | |
| tree | ef4581d2f75268753b337dd038ac0914750a5dba /psycopg/pqpath.c | |
| parent | bfe5b8fe6bdcd3c9b4fd61c57276012cbc7aa8a0 (diff) | |
| download | psycopg2-ac5a747e953944b97e1c07c4abae8aa6124a93ce.tar.gz | |
Fixed precision and scale.
Diffstat (limited to 'psycopg/pqpath.c')
| -rw-r--r-- | psycopg/pqpath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/psycopg/pqpath.c b/psycopg/pqpath.c index 561d4f5..9419867 100644 --- a/psycopg/pqpath.c +++ b/psycopg/pqpath.c @@ -561,7 +561,7 @@ _pq_fetch_tuples(cursorObject *curs) /* 4,5/ scale and precision */ if (ftype == NUMERICOID) { PyTuple_SET_ITEM(dtitem, 4, PyInt_FromLong((fmod >> 16) & 0xFFFF)); - PyTuple_SET_ITEM(dtitem, 5, PyInt_FromLong((fmod & 0xFFFF) - 4)); + PyTuple_SET_ITEM(dtitem, 5, PyInt_FromLong(fmod & 0xFFFF)); } else { Py_INCREF(Py_None); |
