Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 931390 Details for
Bug 1134339
Error in pdo_odbc
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Program causing the bug
pdobug.php (text/plain), 1.02 KB, created by
Patrick Monnerat
on 2014-08-27 10:44:15 UTC
(
hide
)
Description:
Program causing the bug
Filename:
MIME Type:
Creator:
Patrick Monnerat
Created:
2014-08-27 10:44:15 UTC
Size:
1.02 KB
patch
obsolete
><?php > try { > $conn = new PDO("odbc:<yourdatabaseDSN>"); > } > catch (PDOException $e) { > print "Error!: " . $e->getMessage() . "\n"; > die(); > } > > /* Adjust the SQL statement below to your test environment. */ > $stmt = $conn->prepare("CALL LIBRARY.GETDB(? , ?)"); > > $intvalue = 10; > $strvalue = "abc"; > $stmt->bindParam(1, $intvalue, PDO::PARAM_INT|PDO::PARAM_INPUT_OUTPUT, 4); > $stmt->bindParam(2, $strvalue, PDO::PARAM_STR|PDO::PARAM_INPUT_OUTPUT, 100); > print "before execute\n"; > $res = $stmt->execute(); > print "after execute\n"; > > var_dump($intvalue); > var_dump($strvalue); > > if ($res) { > // Print inout and output parameter data > print "Success! \n"; > print "The inout parameter value is: $intvalue. \n"; > print "The out parameter value is: $strvalue. \n"; > > $stmt = null; > // Close connection > $conn = null; > } > else { > $arr = $stmt->errorInfo(); > print "Execute failed with SQLState: " . $arr[0] . "\n"; > print "Error message text: " . $arr[2] . "\n"; > > $stmt = null; > // Close connection > $conn = null; > die(); > } >?>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1134339
: 931390 |
931391