CurtTilmes / perl6-dbmysql

DB::MySQL
2 stars 3 forks source link

NULL integer interpreted as 0 (zero) #3

Closed bbkr closed 5 years ago

bbkr commented 5 years ago

To reproduce:

CREATE TABLE foo ( bar int unsigned ) engine=InnoDB;
INSERT INTO foo (bar) VALUES (NULL);
$mysql.execute("SELECT bar FROM foo").value.say;

Result (should be Any):

0
CurtTilmes commented 5 years ago

Thanks for testing!

Fixed typed NULL handling with commit 288dc45eee410bda5a6bc0c41b062a73212c565d