-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Phalcon\Db::FETCH_COLUMN error: Undefined class constant 'FETCH_COLUMN' #10358
Comments
This is fixed in the 2.0.x branch |
but... php --ri phalcon
phalcon
Web framework delivered as a C-extension for PHP
phalcon => enabled
Author => Phalcon Team and contributors
Version => 2.0.1
Powered by Zephir => Version 0.6.2a |
2.0.x branch has version 2.0.2 |
oh, thanks a lot! waiting for release ) |
$sql = "SELECT id FROM users LIMIT 1000";
$result = $this->getDI()->get('db')->query($sql);
$result->setFetchMode(\Phalcon\Db::FETCH_COLUMN);
var_dump($result->fetchAll()); // nothing Error log:
|
colno (column number) - it is an additional param from pdo. default value is 0 - first column. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
but #1642 tells us constant must be present.
snippet proposed to be valid:
little workaround for now:
upd: add missed getInternalResult =)
The text was updated successfully, but these errors were encountered: