-
Notifications
You must be signed in to change notification settings - Fork 375
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
5.10.0 regression #1371
Comments
Hi, I tested with PDO_SQLSRV driver and couldn't reproduce it. Which driver are you currently using, PDO_SQLSRV or SQLSRV? |
I was using sqlsrv. How can I provide some additional info (I can't export tables/data cause it's my client production data). |
Ok thanks, I'll test sqlsrv to see if there's any issue. |
php 8.0 sqlsrv sqlsrv support => enabled Directive => Local Value => Master Value php 8.1 sqlsrv sqlsrv support => enabled Directive => Local Value => Master Value The same command: Doctrine dbal:
raw functions returns the same. |
I can't compile 5.9.0 on 8.1 and I can't compile 5.10.0 on 8.0. |
I still couldn't reproduce it with SQLSRV, could you try a simple query without using dbal? like this example. |
No I've got errors on both 5.9.0 and 5.10.0. $tsql = "SELECT id FROM DBNAME.HM.TW"; For: SELECT * |
OK, after investigation I have an error at one of records, but different for 5.9 and 5.10: php8.0 simple.php |
Setting: Works for 5.9.0 but on 5.10.0 i still get an error (and that's why I haven't get enought rows). |
Could you run |
unixODBC 2.3.7 root@PHP8:/etc# cat odbcinst.ini Rest of files are empty. How can I dump ODBC trace? |
You could follow this doc. |
I hadn't time, but I have odbctrace.log now. But it's huge. It's the few last lines. If you need whole file, please ping me.
[ODBC][10621][1645000358.854242][SQLGetData.c][545] [ODBC][10621][1645000358.854294][SQLGetDiagField.c][990] |
Thanks, could you also give the output of |
LANG=en_US.UTF-8 |
I believe we are being affected by the same or similar issue. Specs:
When flushing several records to the database, we will consistently get the SQL error "SQLSTATE [22001, 0]: [Microsoft][ODBC Driver 18 for SQL Server]String data, right truncation" when inserting one specific record to the database. For example, if we are flushing 5 records to the same table, the 4th record will consistently fail. The work around in our case is to force pecl to install v5.9.0 instead of v5.10.0 Unfortunately, I'm unable to provide an example file to reproduce, but wanted to provide our scenario in case it helps shed light on the issue. |
But 5.9.0 doesn't work with php 8.1. |
In you ODBC trace, there's a line |
How can I change this value? |
This value is calculated by the driver, so the client can't change this specific buffer size. There's a variable |
@marcinkleczek Have you made any progress on this? We're still unable to reproduce, we understand that you can't provide actual data but a simple repro app would be helpful. |
No I don't. But for small amount of data it works as in 8.0. Maybe we should wait till 5.11 and try after update? |
it might be the same error as i was able to reproduce in #1391 |
This issue is fixed in PR #1408, it will be included in the next release. |
Hi
I have regression. On 5.9.0 simple query returns all 2503 rows, on 5.10.0 it returns only part of data (for * 1136, for id column only 2503, for some columns [id, name, code] 745).
PHP version
First problem occured on 8.1.2 (when I wanted to migrate to 8.1). Then I downgrade to 8.0.15 and on 5.9.0 everything works perfectly. On 5.10.0 problems occurs.
PHP SQLSRV or PDO_SQLSRV version
5.10.0
SQL Server version
Microsoft SQL Server 2016 (SP1-GDR) (KB4505219) - 13.0.4259.0 (X64)
Jun 15 2019 19:20:12
Copyright (c) Microsoft Corporation
Express Edition (64-bit) on Windows Server 2016 Standard 6.3 (Build 14393: ) (Hypervisor)
Client operating system
debian 10.11
Table schema
don't have.
Problem description
On 5.9.0 simple query returns all 2503 rows, on 5.10.0 it returns only part of data (for * 1136, for id column only 2503, for some columns [id, name, code] 745).
Expected behavior and actual behavior
The same amount of data.
The text was updated successfully, but these errors were encountered: