> On March 17, 2014, 2:46 p.m., Tilghman Lesher wrote: > > http://svn.asterisk.org/svn/asterisk/branches/1.8/res/res_config_pgsql.c, > > line 682 > > <https://reviewboard.asterisk.org/r/3346/diff/3/?file=56148#file56148line682> > > > > Just a nitpick. I really hate the double-negative form of > > !column->notnull. It doesn't read easily, and someone looking for a bug > > spends time looking at it, because it looks strange. Perhaps make this a > > macro of the form NULLABLE(column), so that it clarifies the intent of the > > code?
Macros are evil;), a small static inline function will do the job. - zvision ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviewboard.asterisk.org/r/3346/#review11254 ----------------------------------------------------------- On March 17, 2014, 4:16 p.m., zvision wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviewboard.asterisk.org/r/3346/ > ----------------------------------------------------------- > > (Updated March 17, 2014, 4:16 p.m.) > > > Review request for Asterisk Developers. > > > Bugs: ASTERISK-23351 > https://issues.asterisk.org/jira/browse/ASTERISK-23351 > > > Repository: Asterisk > > > Description > ------- > > This patch fixes handling of nullable int columns in update_realtime > function. It checks if a value is empty and sets the column to NULL instead > of '', which raises an error. > Additionally, it checks for existence of the keyfield column instead of the > first parameter column. > > > Diffs > ----- > > http://svn.asterisk.org/svn/asterisk/branches/1.8/res/res_config_pgsql.c > 410663 > > Diff: https://reviewboard.asterisk.org/r/3346/diff/ > > > Testing > ------- > > Only tested for successful compilation. Someone needs to confirm that the > patch works fine. > > > File Attachments > ---------------- > > Patch version for branch 12 > > https://reviewboard.asterisk.org/media/uploaded/files/2014/03/17/4564511f-3cf3-470a-844b-0f8fb1dd0ef6__res_config_pgsql.12.diff > > > Thanks, > > zvision > >
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
