4 <stmt name="create_test" sql="CREATE TABLE IF NOT EXISTS `test` (
 `id` INTEGER UNSIGNED PRIMARY KEY AUTO_INCREMENT,
 `nullable` TIMESTAMP NULL
)" kind="create" target="test" cardinality="0">
8 <stmt name="insert1" sql="INSERT INTO `test` SET
 `nullable` = CASE @nullable WHEN 0 THEN NULL ELSE @nullable END
" kind="insert" target="test" cardinality="0">
10 <value name="nullable" type="Int"/>
14 <stmt name="insert2" sql="INSERT INTO `test` SET `nullable` = NULLIF(@nullable, 0)" kind="insert" target="test" cardinality="0">
16 <value name="nullable" type="Int"/>
20 <stmt name="list" sql="SELECT `id`, IFNULL(`nullable`, 0) `nullable` FROM `test`" kind="select" cardinality="n">
23 <value name="id" type="Int"/>
24 <value name="nullable" type="Datetime"/>
27 <stmt name="insert_nullable" sql="INSERT INTO `test` SET `nullable` = @nullable" kind="insert" target="test" cardinality="0">
29 <value name="nullable" type="Datetime" nullable="true"/>
33 <stmt name="insert_all" sql="INSERT INTO test VALUES (@id,@nullable)" kind="insert" target="test" cardinality="0">
35 <value name="id" type="Int" nullable="true"/>
36 <value name="nullable" type="Datetime" nullable="true"/>
40 <stmt name="list_nullable" sql="SELECT `id`, `nullable` FROM test" kind="select" cardinality="n">
43 <value name="id" type="Int"/>
44 <value name="nullable" type="Datetime" nullable="true"/>