1 | | File "C:\Python25\Lib\site-packages\django\db\backends\postgresql_psycopg2\base.py", line 57, in cursor |
2 | | postgres_version = [int(val) for val in cursor.fetchone()[0].split()[1].split('.')] |
3 | | ValueError: invalid literal for int() with base 10: '3,' |
4 | | |
| 1 | {{{ |
| 2 | File "C:\Python25\Lib\site-packages\django\db\backends\postgresql_psycopg2\base.py", line 57, in cursor |
| 3 | postgres_version = [int(val) for val in cursor.fetchone()[0].split()[1].split('.')] |
| 4 | ValueError: invalid literal for int() with base 10: '3,' |
| 5 | }}} |
6 | | testdb=# select version(); |
7 | | version |
8 | | ----------------------------------------------------- |
9 | | PostgreSQL 8.3.3, compiled by Visual C++ build 1400 |
10 | | (1 row) |
11 | | |
12 | | i think the best way is use PQparameterStatus() or PQserverVersion(), |
13 | | but psycopg2 not implement them. |
| 7 | {{{ |
| 8 | testdb=# select version(); |
| 9 | version |
| 10 | ----------------------------------------------------- |
| 11 | PostgreSQL 8.3.3, compiled by Visual C++ build 1400 |
| 12 | (1 row) |
| 13 | }}} |
| 14 | i think the best way is use PQparameterStatus() or PQserverVersion(), but psycopg2 not implement them. |