ydb-platform / ydb-platform/ydb-php-sdk

bug: Fix Uint64

Open
#148 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
39
Forks
19
Avg merge
1d 15h
Merged PRs (30d)
2

Description

PHP Doesn't support UInt64 directly and work with the numbers as Int64 under, then switch to double.

I don't know good way for solve it.

Now it can be workarounded for work in PHP with the numbers as string (cast to utf8 while read and send to server as utf8 type too) and work with native uint64 on server side only.

$a = "9523372036854775807";

SELECT CAST($a AS UInt64);

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by tracing how the PHP SDK reads and sends UInt64 values, then reproduce the provided 9523372036854775807 example; done means values preserve their exact UInt64 meaning across the client/server boundary, including the documented string-based workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.