Skip to content

Commit 48d3bde

Browse files
committed
implemented converting int8 & int16 to typed value
1 parent c23d601 commit 48d3bde

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Types/IntType.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,11 @@ public function getYdbType()
7474
*/
7575
protected function getYdbKeyName()
7676
{
77-
if ($this->bits === 32)
78-
{
79-
return $this->unsigned ? 'uint32_value' : 'int32_value';
80-
}
81-
else if ($this->bits === 64)
77+
if ($this->bits === 64)
8278
{
8379
return $this->unsigned ? 'uint64_value' : 'int64_value';
8480
}
81+
return $this->unsigned ? 'uint32_value' : 'int32_value';
8582
}
8683

8784
/**

0 commit comments

Comments
 (0)