|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-07-02 17:32 UTC] christophe at delmas dot ch
[2015-07-02 18:02 UTC] christophe at delmas dot ch
[2015-07-07 17:49 UTC] martinpop83 at gmail dot com
[2016-02-11 14:28 UTC] miracle at rpz dot name
[2016-09-12 22:16 UTC] adambaratz@php.net
-Status: Open
+Status: Not a bug
[2016-09-12 22:16 UTC] adambaratz@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 08:00:01 2025 UTC |
Description: ------------ I can't create two and more select statements with pdo_dblib. If I try it, pdo_dblib create weird combination of statements into first statement and others returns false. With pdo_sqlsrv (Windows server) and mssql (Linux server, FreeTDS) is everything ok. Test script: --------------- $pdo = new PDO("dblib:host=<host>;dbname=<dbname>", "username", "password"); $stmtA = $pdo->query("SELECT 1 AS number, 'aaa' AS text"); $stmtB = $pdo->query("SELECT 'val' AS value"); print_r($stmtA->fetch(PDO::FETCH_ASSOC)); print_r($stmtB->fetch(PDO::FETCH_ASSOC)); Expected result: ---------------- Array ( [number] => 1 [text] => aaa ) Array ( [value] => val ) Actual result: -------------- Array ( [value] => val [text] => ) bool(false)