@@ -694,6 +694,8 @@ public function test_default_values(): void
694694 $ table ->uuid ('id ' );
695695 $ table ->integer ('null ' )->default (null )->nullable ();
696696 $ table ->integer ('int ' )->default (1 );
697+ $ table ->integer ('int_gen ' )->generatedAs ();
698+ $ table ->integer ('int_genc ' )->generatedAs ('bit_reversed_positive start counter with 2 ' );
697699 $ table ->integer ('int_seq ' )->useSequence ();
698700 $ table ->bigInteger ('bigint ' )->default (1 );
699701 $ table ->integer ('bigint_seq ' )->useSequence ();
@@ -733,6 +735,8 @@ public function test_default_values(): void
733735 '`id` string(36) not null ' ,
734736 '`null` int64 ' ,
735737 '`int` int64 not null default (1) ' ,
738+ '`int_gen` int64 not null generated by default as identity (bit_reversed_positive) ' ,
739+ '`int_genc` int64 not null generated by default as identity (bit_reversed_positive start counter with 2) ' ,
736740 '`int_seq` int64 not null default (get_next_sequence_value(sequence ` ' . $ tableName . '_int_seq_sequence`)) ' ,
737741 '`bigint` int64 not null default (1) ' ,
738742 '`bigint_seq` int64 not null default (get_next_sequence_value(sequence ` ' . $ tableName . '_bigint_seq_sequence`)) ' ,
@@ -772,6 +776,8 @@ public function test_default_values(): void
772776
773777 $ this ->assertSame (null , $ result ['null ' ]);
774778 $ this ->assertSame (1 , $ result ['int ' ]);
779+ $ this ->assertIsInt ($ result ['int_gen ' ]);
780+ $ this ->assertIsInt ($ result ['int_genc ' ]);
775781 $ this ->assertIsInt ($ result ['int_seq ' ]);
776782 $ this ->assertSame (1 , $ result ['bigint ' ]);
777783 $ this ->assertIsInt ($ result ['bigint_seq ' ]);
0 commit comments