[PyGreSQL] Use of _quote method in pgdb.py
D'Arcy J.M. Cain
darcy at druid.net
Wed Mar 20 10:43:18 EST 2002
I am looking at this and I see that there is a difference between the
way it works in pgdb.py and pg.py. In pg the function takes a second
arg which defines the type. In pgdb it uses the type of the arg to
determine the quoting method.
The reason that it is done that way in pg is because the type of the
object doesn't necessarily reflect the type of the database field. For
example, the object could be an int but is being put into a text field.
So now I want to start refactoring some of the common code and this
seems like the most obvious place to start but I need to resolve these
two methods. Any comments, suggestions, etc?
--
D'Arcy J.M. Cain <darcy@{druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
More information about the PyGreSQL
mailing list