-
Notifications
You must be signed in to change notification settings - Fork 100
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
fetchNum() method #101
Comments
You mean |
Not sure what you mean here @gholol -- can you expand a bit? |
Well, sure guys. Aura.Sql provides fetchAssoc() method. We can use it like this
Now, this of course retrieves an ASSOCIATIVE array (where the key is the I can do a workaround around this, and write something like:
But isn't it a bit impractical? Do you have any plans of implementing a function that returns a result as numeric array? (PDO:FETCH_NUM |
This particular case ... $result = $pdo->fetchAssoc($stm, $bind);
list($value1,
$value2,
$value3
) = array_keys($result); ... might be addressed by: $values = $pdo->fetchCol($stm, $bind); That will populate Is that sufficient, or is there another case that needs to be addressed? |
@gholol Any further thoughts? |
Hi! Sorry for not responding, i was at work. Your suggestion to use fetchCol() was right, it works perfectly ;) So i don't have anything else to rant about. Have a nice day guys! |
Hi
It's not really an issue, just a simple question.
I'm little surprised that there's no fetchNum() method. Do you have any plans of implementing it?
The text was updated successfully, but these errors were encountered: