Skip to content

Commit ee56839

Browse files
authored
Merge pull request #4 from Medalink/master
Add double support to BQ float type.
2 parents a494233 + 7b5107b commit ee56839

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Big.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,9 @@ public static function fieldMap($fields, $structs)
333333
case Types::TIME:
334334
$type = 'TIME';
335335
break;
336+
case Types::DOUBLE:
337+
$type = 'FLOAT';
338+
break;
336339
case Types::JSON:
337340
// JSON data-types require a struct to be defined, here we check for developer hints or skip these
338341
if (!empty($structs)) {

src/Types.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ class Types
2727
const FLOAT = 'float';
2828
const CHAR = 'char';
2929
const ENUM = 'enum';
30+
const DOUBLE = 'double';
3031
}

0 commit comments

Comments
 (0)