~! is a bit confusing to say 'do not quote this':
$item['upd_time']='~!now()';
"BITWISE INVERTION of NOT now()?" What is that?
I've spent some time to figure out what does ~! mean. In MySQL it actually evaluates into some weird value:
MariaDB [mysql]> select ~!now();
+----------------------+
| ~!now() |
+----------------------+
| 18446744073709551615 |
+----------------------+
Need to make a notice about it in Documentation. Probably change
* 'upd_time' => '~!now()', #will set upd_time=now()
to something more descriptive
* 'upd_time' => '~!now()', # '~!' prefix means not to quote, i.e.: SET upd_time=now()
~!is a bit confusing to say 'do not quote this':"BITWISE INVERTION of NOT now()?" What is that?
I've spent some time to figure out what does
~!mean. In MySQL it actually evaluates into some weird value:Need to make a notice about it in Documentation. Probably change
to something more descriptive