Fixed #12766 -- Only set the psycopg1 client encoding when the connection is first created. This allows the custom_pk test to pass under psycopg1.
Fixed #12766 -- Only set the psycopg1 client encoding when the connection is first created. This allows the custom_pk test to pass under psycopg1.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12848 bcc190cf-cafb-0310-a4f2-bffc1f526a37

--HG--
extra : convert_revision : b3fda9d212bc159ed4ce2f6a7b5342e464fe7c30

adieu/django-nonrel,heracek/django-nonrel,heracek/django-nonrel,heracek/django-nonrel,adieu/django-nonrel,adieu/django-nonrel