@@ -192,7 +192,7 @@ public function getSQLDefinition(): string
192192 $ definition = $ this ->getTypeOnlySQLDefinition ();
193193
194194 if (strtoupper ($ this ->getType ()) === self ::TYPE_ARRAY
195- || strtoupper ($ this ->getType ()) === self ::TYPE_STRUCT
195+ || strtoupper ($ this ->getType ()) === self ::TYPE_STRUCT
196196 ) {
197197 return $ definition ;
198198 }
@@ -287,12 +287,12 @@ public static function getTypeByBasetype(string $basetype): string
287287 public function getBackendBasetype (): string
288288 {
289289 return match (strtoupper ($ this ->type )) {
290- self ::TYPE_INT => self ::TYPE_INT64 ,
291- self ::TYPE_SMALLINT => self ::TYPE_INT64 ,
292- self ::TYPE_INTEGER => self ::TYPE_INT64 ,
293- self ::TYPE_BIGINT => self ::TYPE_INT64 ,
294- self ::TYPE_TINYINT => self ::TYPE_INT64 ,
295- self ::TYPE_BYTEINT => self ::TYPE_INT64 ,
290+ self ::TYPE_INT64 => self ::TYPE_INTEGER ,
291+ self ::TYPE_INT => self ::TYPE_INTEGER ,
292+ self ::TYPE_SMALLINT => self ::TYPE_INTEGER ,
293+ self ::TYPE_BIGINT => self ::TYPE_INTEGER ,
294+ self ::TYPE_TINYINT => self ::TYPE_INTEGER ,
295+ self ::TYPE_BYTEINT => self ::TYPE_INTEGER ,
296296 self ::TYPE_DECIMAL => self ::TYPE_NUMERIC ,
297297 self ::TYPE_BIGDECIMAL => self ::TYPE_BIGNUMERIC ,
298298 default => $ this ->type
0 commit comments