File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function getIntegerTypeDeclarationSQL(array $columnDef)
56
56
*/
57
57
public function getBigIntTypeDeclarationSQL (array $ columnDef )
58
58
{
59
- return $ this -> _getCommonIntegerTypeDeclarationSQL ( $ columnDef ) . ' Int64 ' ;
59
+ return ' String ' ;
60
60
}
61
61
62
62
/**
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /*
3
+ * This file is part of the FODDBALClickHouse package -- Doctrine DBAL library
4
+ * for ClickHouse (a column-oriented DBMS for OLAP <https://clickhouse.yandex/>)
5
+ *
6
+ * (c) FriendsOfDoctrine <https://github.com/FriendsOfDoctrine/>.
7
+ *
8
+ * For the full copyright and license inflormation, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace FOD \DBALClickHouse \Types ;
13
+
14
+ use Doctrine \DBAL \Platforms \AbstractPlatform ;
15
+
16
+ /**
17
+ * BigInt Type
18
+ *
19
+ * @author Mochalygin <[email protected] >
20
+ */
21
+ class BigIntType extends \Doctrine \DBAL \Types \BigIntType
22
+ {
23
+ /**
24
+ * {@inheritdoc}
25
+ */
26
+ public function getBindingType ()
27
+ {
28
+ return \PDO ::PARAM_INT ;
29
+ }
30
+
31
+ /**
32
+ * {@inheritdoc}
33
+ */
34
+ public function convertToDatabaseValue ($ value , AbstractPlatform $ platform )
35
+ {
36
+ return (int )$ value ;
37
+ }
38
+
39
+ /**
40
+ * {@inheritdoc}
41
+ */
42
+ public function getSQLDeclaration (array $ fieldDeclaration , AbstractPlatform $ platform )
43
+ {
44
+ return (empty ($ fieldDeclaration ['unsigned ' ]) ? '' : 'U ' ) . 'Int64 ' ;
45
+ }
46
+ }
You can’t perform that action at this time.
0 commit comments