mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Applied patch from #148.
This commit is contained in:
parent
e02f569dd3
commit
8c2c72a48a
|
@ -1,5 +1,7 @@
|
||||||
2007-01-16 Federico Di Gregorio <fog@initd.org>
|
2007-01-16 Federico Di Gregorio <fog@initd.org>
|
||||||
|
|
||||||
|
* psycopg/psycopgmodule.c: applied LATIN patch from #148.
|
||||||
|
|
||||||
* psycopg/connection_type.c: obfuscate password after using it.
|
* psycopg/connection_type.c: obfuscate password after using it.
|
||||||
|
|
||||||
* lib/extras.py: moved SQL_IN to extensions.py; we're now officially
|
* lib/extras.py: moved SQL_IN to extensions.py; we're now officially
|
||||||
|
|
|
@ -296,13 +296,20 @@ psyco_adapters_init(PyObject *mod)
|
||||||
|
|
||||||
static encodingPair encodings[] = {
|
static encodingPair encodings[] = {
|
||||||
{"SQL_ASCII", "ascii"},
|
{"SQL_ASCII", "ascii"},
|
||||||
{"LATIN1", "latin_1"},
|
{"LATIN1", "iso8859_1"},
|
||||||
|
{"LATIN2", "iso8859_2"},
|
||||||
|
{"LATIN3", "iso8859_3"},
|
||||||
|
{"LATIN4", "iso8859_4"},
|
||||||
|
{"LATIN5", "iso8859_9"},
|
||||||
|
{"LATIN6", "iso8859_10"},
|
||||||
|
{"LATIN7", "iso8859_13"},
|
||||||
|
{"LATIN8", "iso8859_14"},
|
||||||
|
{"LATIN9", "iso8859_15"},
|
||||||
{"UNICODE", "utf_8"},
|
{"UNICODE", "utf_8"},
|
||||||
{"UTF8", "utf_8"},
|
{"UTF8", "utf_8"},
|
||||||
|
|
||||||
/* some compatibility stuff */
|
/* some compatibility stuff */
|
||||||
{"LATIN-1", "latin_1"},
|
{"LATIN-1", "latin_1"},
|
||||||
|
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
static void psyco_encodings_fill(PyObject *dict)
|
static void psyco_encodings_fill(PyObject *dict)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user