-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert max UInt64 #80
Comments
I think it's not easy to decide ;( https://stackoverflow.com/questions/864058/how-to-have-64-bit-integer-on-php Try use direct write gmp_strval and $client = new ClickHouseDB\Client($config);
$client->write('DROP TABLE IF EXISTS _phpCh_UINT64Test');
$client->write('CREATE TABLE _phpCh_UINT64Test (ui64 UInt64) Engine=Log');
//
$value="18446744073709551615"; // WARN! STRING !
//
$client->transport()->write('INSERT INTO _phpCh_UINT64Test VALUES ( '.gmp_strval($value).' )');
echo "insert done\n";
print_r($client->select('SELECT ui64 FROM _phpCh_UINT64Test')->rows());
|
I'm preparing a PR with friendlier approach. I just wanted to check whether you have stumbled upon this and have solution or not. Thanks! I'd leave this open until that PR submission. |
@simPod Clouse issue - "as an unsolvable" ? |
Will look at it tomorrow, create test case at least and then shall see, k?
…On Mon, Sep 24, 2018, 21:09 Igor Strykhar ***@***.***> wrote:
@simPod <https://github.com/simPod> Clouse issue - "as an unsolvable" ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#80 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUAJS7bsqGsGDscEL8I5OzTIuEEtqibks5ueS3MgaJpZM4VraNO>
.
|
Good work! Thx! |
How do you insert
18446744073709551615
value to column of typeUInt64
? ThxThe text was updated successfully, but these errors were encountered: