|
11 | 11 | class Pgsql implements IDialect |
12 | 12 | { |
13 | 13 | private static $columnTypes = array( |
| 14 | + 'bigint' => Column::INTEGER, |
| 15 | + 'int8' => Column::INTEGER, //alias de 'bigint' |
| 16 | + 'bigserial8' => Column::INTEGER, //alias de 'bigint' |
| 17 | + 'serial8' => Column::INTEGER, //alias de 'bigint' |
| 18 | + //'bit', |
| 19 | + //'bit varying', |
| 20 | + //'varbit', |
| 21 | + 'boolean' => Column::BOOLEAN, |
| 22 | + 'bool' => Column::BOOLEAN, //alias de 'boolean' |
| 23 | + //'box', |
| 24 | + //'bytea', |
| 25 | + 'character varying' => Column::STRING, |
| 26 | + 'varchar' => Column::STRING, //alias de 'character varying' |
| 27 | + 'character' => Column::STRING, |
| 28 | + 'char' => Column::STRING, //alias de 'character' |
| 29 | + //'cidr', |
| 30 | + //'circle', |
| 31 | + 'date' => Column::DATE, |
| 32 | + 'double precision' => Column::FLOAT, |
| 33 | + 'float8' => Column::FLOAT, //alias de 'double precision' |
| 34 | + //'inet', |
| 35 | + 'integer' => Column::INTEGER, |
| 36 | + 'int' => Column::INTEGER, //alias de 'integer' |
| 37 | + 'int4' => Column::INTEGER, //alias de 'integer' |
| 38 | + //'interval', |
| 39 | + //'line', |
| 40 | + //'lseg', |
| 41 | + //'macaddr', |
| 42 | + //'money', |
| 43 | + 'numeric' => Column::FLOAT, |
| 44 | + 'decimal' => Column::FLOAT, //alias de 'numeric' |
| 45 | + //'path', |
| 46 | + //'point', |
| 47 | + //'polygon', |
| 48 | + 'real' => Column::FLOAT, |
| 49 | + 'float4' => Column::FLOAT, //alias de 'real' |
| 50 | + 'smallint' => Column::INTEGER, |
| 51 | + 'int2' => Column::INTEGER, //alias de 'smallint' |
| 52 | + 'serial' => Column::INTEGER, |
| 53 | + 'serial4' => Column::INTEGER, //alias de 'serial' |
| 54 | + 'text' => Column::TEXT, |
| 55 | + //'time without time zone', |
| 56 | + //'time', |
| 57 | + //'time with time zone', |
| 58 | + //'timetz', |
| 59 | + 'timestamp without time zone' => Column::TIMESTAMP, |
| 60 | + 'timestamp' => Column::TIMESTAMP, //alias de 'timestamp without time zone' |
| 61 | + 'timestamp with time zone' => Column::TIMESTAMP, |
| 62 | + 'timestamptz' => Column::TIMESTAMP, //alias de 'timestamp with time zone' |
| 63 | + //'tsquery', |
| 64 | + //'tsvector', |
| 65 | + //'txid_snapshot', |
| 66 | + //'uuid', |
| 67 | + //'xml', |
14 | 68 | ); |
15 | 69 |
|
16 | 70 | private static $nativeTypes = array( |
| 71 | + Column::STRING => array('type' => 'character varying', 'length' => 255), |
| 72 | + Column::TEXT => array('type' => 'text'), |
| 73 | + Column::FLOAT => array('type' => 'real'), |
| 74 | + Column::DATETIME => array('type' => 'timestamp without time zone'), |
| 75 | + Column::DATE => array('type' => 'date'), |
| 76 | + Column::TIMESTAMP => array('type' => 'timestamp without time zone'), |
| 77 | + Column::INTEGER => array('type' => 'bigint'), |
| 78 | + Column::BOOLEAN => array('type' => 'boolean') |
17 | 79 | ); |
18 | 80 |
|
19 | 81 | private $name = 'pgsql'; |
|
0 commit comments