$pdo->getAttribute(ATTR_FETCH_TABLE_NAMES) causes exceptionWorkAround for PHP PDO(with libpq V 9.1.4)...
How much character growth crosses the line into breaking the character
Can I use my Chinese passport to enter China after I acquired another citizenship?
Reply 'no position' while the job posting is still there
How can "mimic phobia" be cured or prevented?
Bob has never been a M before
Visiting the UK as unmarried couple
Folder comparison
Greco-Roman egalitarianism
Open a doc from terminal, but not by its name
Does the Mind Blank spell prevent the target from being frightened?
How to color a curve
What does this horizontal bar at the first measure mean?
Longest common substring in linear time
When quoting, must I also copy hyphens used to divide words that continue on the next line?
Java - What do constructor type arguments mean when placed *before* the type?
What is this type of notehead called?
Why has "pence" been used in this sentence, not "pences"?
Query about absorption line spectra
Is it possible to have a strip of cold climate in the middle of a planet?
Global amount of publications over time
ArcGIS not connecting to PostgreSQL db with all upper-case name
Confusion on Parallelogram
Why did the HMS Bounty go back to a time when whales are already rare?
Is there a word to describe the feeling of being transfixed out of horror?
$pdo->getAttribute(ATTR_FETCH_TABLE_NAMES) causes exception
WorkAround for PHP PDO(with libpq V 9.1.4) binding for use of CITEXT?Do I have to filter the percona.checksums table in replication for use with pt-table-checksum?Occasional disk I/O errors in SQLiteMySQL: can a table get stuck in the table cache?Connecting to MYSQL on an EC2 instanceCreating tables PDO SqliteHow to enrich event based data per row based on future eventsMySQL Stored Procedure not throwing error if it contains a query that succeedsTrying to update timestamp using FROM_UNIXTIMESQL Server stored procedure not throwing certain kind of error
I am working with a colleague on integrating some code. In his code, he makes a call $pdo->setAttribute(PDO::ATTR_FETCH_TABLE_NAMES, true);
However this messes up my code, because I have ATTR_FETCH_TABLE_NAMES
set to false, so we are trying to update his code to detect the current value and switch back to it after his code has run.
We tried this with $pdo->getAttribute(PDO::ATTR_FETCH_TABLE_NAMES);
, but it fails with the error SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute
.
Looking at the php page for getAttribute, I don't see ATTR_FETCH_TABLE_NAMES
listed.
I do not understand why setAttribute()
works for ATTR_FETCH_TABLE_NAMES
, but getAttribute()
does not. Is there a different way to get the currently set value for ATTR_FETCH_TABLE_NAMES
?
PHP 7.2, MySQL 5.7.25, Ubuntu 18
mysql php
add a comment |
I am working with a colleague on integrating some code. In his code, he makes a call $pdo->setAttribute(PDO::ATTR_FETCH_TABLE_NAMES, true);
However this messes up my code, because I have ATTR_FETCH_TABLE_NAMES
set to false, so we are trying to update his code to detect the current value and switch back to it after his code has run.
We tried this with $pdo->getAttribute(PDO::ATTR_FETCH_TABLE_NAMES);
, but it fails with the error SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute
.
Looking at the php page for getAttribute, I don't see ATTR_FETCH_TABLE_NAMES
listed.
I do not understand why setAttribute()
works for ATTR_FETCH_TABLE_NAMES
, but getAttribute()
does not. Is there a different way to get the currently set value for ATTR_FETCH_TABLE_NAMES
?
PHP 7.2, MySQL 5.7.25, Ubuntu 18
mysql php
add a comment |
I am working with a colleague on integrating some code. In his code, he makes a call $pdo->setAttribute(PDO::ATTR_FETCH_TABLE_NAMES, true);
However this messes up my code, because I have ATTR_FETCH_TABLE_NAMES
set to false, so we are trying to update his code to detect the current value and switch back to it after his code has run.
We tried this with $pdo->getAttribute(PDO::ATTR_FETCH_TABLE_NAMES);
, but it fails with the error SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute
.
Looking at the php page for getAttribute, I don't see ATTR_FETCH_TABLE_NAMES
listed.
I do not understand why setAttribute()
works for ATTR_FETCH_TABLE_NAMES
, but getAttribute()
does not. Is there a different way to get the currently set value for ATTR_FETCH_TABLE_NAMES
?
PHP 7.2, MySQL 5.7.25, Ubuntu 18
mysql php
I am working with a colleague on integrating some code. In his code, he makes a call $pdo->setAttribute(PDO::ATTR_FETCH_TABLE_NAMES, true);
However this messes up my code, because I have ATTR_FETCH_TABLE_NAMES
set to false, so we are trying to update his code to detect the current value and switch back to it after his code has run.
We tried this with $pdo->getAttribute(PDO::ATTR_FETCH_TABLE_NAMES);
, but it fails with the error SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute
.
Looking at the php page for getAttribute, I don't see ATTR_FETCH_TABLE_NAMES
listed.
I do not understand why setAttribute()
works for ATTR_FETCH_TABLE_NAMES
, but getAttribute()
does not. Is there a different way to get the currently set value for ATTR_FETCH_TABLE_NAMES
?
PHP 7.2, MySQL 5.7.25, Ubuntu 18
mysql php
mysql php
asked 5 mins ago
Ben HolnessBen Holness
1135
1135
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "182"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f232974%2fpdo-getattributeattr-fetch-table-names-causes-exception%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Database Administrators Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f232974%2fpdo-getattributeattr-fetch-table-names-causes-exception%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown