-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
PostgreSQL's PDOStatement::getColumnMeta() fills in table's name. #374
Conversation
Quick comment in case someone would like to commit this.
Oid is uint currently, so %d is not good. |
I was unsure what % use with Oid, so I copied it from line of pgsql_stmt_get_column_meta():
So this line should be corrected too. What is correct % to use with Oid? |
%u is the format for unsigned. |
Hi Petr, 2013/7/4 Petr Sykora [email protected]
This should be %ud, I'll fix it later. Yasuo Ohgaki |
@yohgaki %u stands for 'unsigned int', %d stands for 'int'. So 'u' isn't a modifier. %ud will append the char 'd' to that number, that is obviously not what's expected. |
2013/7/10 Anatol Belski [email protected]
Oops. It should be %u. Yasuo Ohgaki |
@yohgaki - any more comments or this is ready for merge? |
Is there anything else I can do to make this pull happen? |
I've ported and merged it into 7.0 with aeb9c81, but seems the QA page cannot close this. This PR can be closed though. Thanks. |
http://www.php.net/manual/en/pdostatement.getcolumnmeta.php states that there should be column 'table' in returned array. That is not true in current implementation of pgsql_stmt_get_column_meta(). This patch gets table's oid and tries to translate it to table's name.