db2 driver updates
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\Db2;
|
||||
|
||||
class RawQueryTest extends Db2TestCase
|
||||
{
|
||||
public function test_raw_query_columns_are_not_removed(): void
|
||||
{
|
||||
$row = $this->db()->selectOne("
|
||||
SELECT
|
||||
CAST('ordinary value' AS VARCHAR(30))
|
||||
AS \"data\",
|
||||
CAST('1' AS VARCHAR(1))
|
||||
AS \"__db2_null_flag_0\"
|
||||
FROM SYSIBM.SYSDUMMY1
|
||||
");
|
||||
|
||||
$this->assertSame('ordinary value', $row->data);
|
||||
|
||||
$this->assertTrue(
|
||||
property_exists($row, '__db2_null_flag_0')
|
||||
);
|
||||
|
||||
$this->assertSame(
|
||||
'1',
|
||||
$row->__db2_null_flag_0
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user