Mercurial > hg > ZDBInterface
comparison DBInterface.py @ 6:1b25a85a2165
fixed bug and improved sqlName
author | root@xserve09.mpiwg-berlin.mpg.de |
---|---|
date | Tue, 15 Feb 2011 20:41:28 +0100 |
parents | 0ade331198de |
children | 17b19345d011 |
comparison
equal
deleted
inserted
replaced
5:ca30cf0e810d | 6:1b25a85a2165 |
---|---|
3 | 3 |
4 @author: casties | 4 @author: casties |
5 ''' | 5 ''' |
6 | 6 |
7 import logging | 7 import logging |
8 import re | |
8 import psycopg2 | 9 import psycopg2 |
9 # make psycopg use unicode objects | 10 # make psycopg use unicode objects |
10 import psycopg2.extensions | 11 import psycopg2.extensions |
11 psycopg2.extensions.register_type(psycopg2.extensions.UNICODE) | 12 psycopg2.extensions.register_type(psycopg2.extensions.UNICODE) |
12 psycopg2.extensions.register_type(psycopg2.extensions.UNICODEARRAY) | 13 psycopg2.extensions.register_type(psycopg2.extensions.UNICODEARRAY) |