Failure

User tests: Successful: Unsuccessful:

avatar vietvh
vietvh
22 Oct 2012

In Postgresql, if we have a column (TEXT NOT NULL) and we do not specify the column in INSERT, Postgresql will assume that column's value is NULL while MySQL will take it as empty string ''

avatar vietvh vietvh - open - 22 Oct 2012
avatar gpongelli
gpongelli - comment - 22 Oct 2012

Have you tried to add "DEFAULT '' " to column definition, without this change ?
In this case it's maintained consistency with MySQL, the result is the same without doing whenever code change like this.

avatar vietvh
vietvh - comment - 22 Oct 2012

Yes, adding default value is fine however I checked the DDL of MySQL, PostgreSql and SqlAzure, they do not have default value for those fields, adding default value should be done for those 3 and I just do not have SqlAzure at hand to test so I went with the PHP fix, just faster for me.

avatar nicksavov
nicksavov - comment - 29 Mar 2013

Thanks for coding this, Viet Hoang Vu!

While we’re transitioning to a new integrated tracker, could you report the issue on our current main tracker at JoomlaCode and cross-reference each with a link to the other?

Alternatively, let me know if you’d like me to create it for you and I can go ahead and do that.

Thanks in advance and thanks again for coding this, Viet Hoang Vu!

avatar nicksavov
nicksavov - comment - 4 May 2013

I went ahead and submitted the tracker item:
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=30838

Thanks again, Viet Hoang Vu!

avatar brianteeman
brianteeman - comment - 4 Mar 2014

Closing as this was fixed some time ago

avatar brianteeman brianteeman - close - 4 Mar 2014

Add a Comment

Login with GitHub to post a comment