#3 DBConnection patch for postgres defaults

closed-accepted
nobody
Postgres (36)
5
2003-04-21
2003-04-21
David M. Cook
No

Instead of using using eval to eval default values
obtained from the database metadata (which works until
one encouters something that is not a Python
expression), we use SQLBuilder.const:

kw['default'] =
getattr(SQLBuilder.const, defaultstr)

This also fixes the regular expression for foreign key
references.

Discussion

  • David M. Cook
    David M. Cook
    2003-04-21

    DBConnection patch for postgres defaults using const

     
  • Ian Bicking
    Ian Bicking
    2003-04-21

    • status: open --> closed-accepted