On 11/10/2016 17:39, Lester Caine wrote:
The importance of 'null' in relation to SQL data sets is something that PHP seems to push under the carpet a bit. It is essential to the way SQL works and so needs to mirror properly which trying to emulate something without having the correct metadata defining each field is only ever going to be a guess?
It seems pretty trivial to me: SQL distinguishes between the string '' and null, and so does PHP. If you pass a PHP null to a query, PHP should do as you say and send an SQL null, and the DB can give an appropriate error if null is not allowed in that context.
Regards, -- Rowan Collins [IMSoP] -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php