diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-06-05 16:26:27 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2009-06-05 16:26:27 +0200 |
commit | 5d8f38cb9491365af78dfbecabc1853075430603 (patch) | |
tree | fe01a30676398e98df4dec341fee934e6efd8fc7 | |
parent | 630a517219464f3113449b5984c04e18b96f265c (diff) | |
download | logilab-common-5d8f38cb9491365af78dfbecabc1853075430603.tar.gz |
fix default set_null_allowed implementation
-rw-r--r-- | adbh.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -231,7 +231,7 @@ INSERT INTO %s VALUES (0);''' % (seq_name, seq_name) table, column, coltype) def sql_set_null_allowed(self, table, column, coltype, null_allowed): - cmd = null_allowed and 'SET' or 'DROP' + cmd = null_allowed and 'DROP' or 'SET' return 'ALTER TABLE %s ALTER COLUMN %s %s NOT NULL' % ( table, column, cmd) |