Applied patch from #148.

This commit is contained in:
Federico Di Gregorio 2007-01-16 11:32:01 +00:00
parent e02f569dd3
commit 8c2c72a48a
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,7 @@
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.
* lib/extras.py: moved SQL_IN to extensions.py; we're now officially

View File

@ -296,13 +296,20 @@ psyco_adapters_init(PyObject *mod)
static encodingPair encodings[] = {
{"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"},
{"UTF8", "utf_8"},
/* some compatibility stuff */
{"LATIN-1", "latin_1"},
{NULL, NULL}
};
static void psyco_encodings_fill(PyObject *dict)