-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add executeQuery and executeUpdate #23665
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
Conversation
nickvergessen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecate execute?
Probably. I was even thinking maybe we should not leak the doctrine types in the new return type. But just return our own wrapper. As to decouple the whole thing. |
|
I don't get this weird CI failure ... Any idea why this is happening? |
server/apps/dav/lib/CalDAV/CalDavBackend.php Lines 789 to 790 in 9956d13
|
But why isn't it on all phpunit runs but only on one of them? |
ChristophWurst
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine but we really should have our own abstraction of the statement class from dbal :)
|
Ok added the statement wrapper (to just have that right away else things might do boom) The statement wrapper is very tiny right now. But will most likely already cover the 90%. We can extend later when needed. |
| /** | ||
| * @sinc 21.0.0 | ||
| */ | ||
| public function fetch(): array; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
array … of? 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah work your magic if you want. Array of whatever.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@return mixed[] values of a row
@psalm-return array<string, mixed>
should do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@psalm-return array<string, string>
All db values returned are strings and need custom casting afterwards as far as I know
| namespace OCP\DB\QueryBuilder; | ||
|
|
||
| /** | ||
| * @sinc 21.0.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @sinc 21.0.0 | |
| * @since 21.0.0 |
|
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 34647: failurecheckers
mysql8.0-php7.4Show full logintegration-sharing-v1-video-verification
Show full log |
660326b to
76a6328
Compare
Names shamelessly copied from Doctrine itself. Internally it is still using the same flow. But I added some checks around it. This should make static analysis a bit more happy. Which in turn makes me more happy. Signed-off-by: Roeland Jago Douma <[email protected]>
nickvergessen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didnt test
Names shamelessly copied from Doctrine itself.
Internally it is still using the same flow. But I added some checks
around it.
This should make static analysis a bit more happy. Which in turn makes
me more happy.
Signed-off-by: Roeland Jago Douma [email protected]