CVS mat: added _escape_field to permit backends to escape fields name as they are
| Newsgroups | gmane.mail.majordomo.majordomo2.cvs |
|---|---|
| Message-ID | <[email protected]> |
CVSROOT: /home/cvs/majordomo
Module name: majordomo
Changes by: mat 03/02/21 11:21:14
Modified files:
lib/Mj/SimpleDB: Pg.pm SQL.pm
Log message:
added _escape_field to permit backends to escape fields name as they are
handed to queries in case they would be a reserved world ("user" for
instance)
added _escape_value to undef empty values so that DBI uses NULL and not ''
(I guess MySQL don't care to put '' into a integer, but PostgreSQL won't
let it happen)