Skip to content
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

Doc + PHP Doc should clarify QueryBuilder features not supported across databases #3302

Closed
andrerom opened this issue Sep 26, 2018 · 2 comments

Comments

@andrerom
Copy link

andrerom commented Sep 26, 2018

Bug Report

Q A
BC Break yes/no (depends on resolution)
Version 2.x

Summary

Like most users (#2451, #2610, ..) expectations with DBAL, including QueryBuilder, is that it handles Database differences.

<op> Why otherwise would we bother abstracting queries with QueryBuilder? For anyone accustomed to SQL it does not exactly make it easier to read. </op> 🤷‍♂️

Anyways..

  • While Query Builder states this in class doc, this is not where most users starts out
  • Solution for this seems to be kind of planned for 3.0, however for 2.x doc can be improved

So suggestion here is to make this more clear on doc and PHP doc that covers features where users needs to be aware it depends on database if it is supported or not.

Current behaviour

Features on QueryBuilder is not supported across databases.

How to reproduce

Use features not supported on some databases, for example alias argument on ->update().

Expected behaviour

Either:
A. DBAL handles this for us
B. Doc is clear on every single feature where this can be a problem (ok'ish while waiting for A)
C. Or features not supported across databases are deprecated and documented as such

If A is planned for 3.0 we can update doc in 2.x according to B.

In case of update() alias argument it can be clarified in these places:

Can also remove alias usage in this examples to avoid (miss-)leading people to use this:

Which other QueryBuilder features are affected?

@andrerom andrerom changed the title Doc + PHP oc should clarify on QueryBuilder features if not supported across databases Doc + PHP Doc should clarify on QueryBuilder features if not supported across databases Sep 26, 2018
@andrerom andrerom changed the title Doc + PHP Doc should clarify on QueryBuilder features if not supported across databases Doc + PHP Doc should clarify QueryBuilder features not supported across databases Sep 26, 2018
@morozov morozov added Documentation Hacktoberfest Good issue for participating in Hacktoberfest labels Oct 3, 2018
@morozov morozov removed the Hacktoberfest Good issue for participating in Hacktoberfest label Oct 7, 2021
@morozov
Copy link
Member

morozov commented Aug 5, 2022

There's endless potential for improvement, especially in the documentation. A pull request is welcome.

@morozov morozov closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2022
@github-actions
Copy link

github-actions bot commented Sep 5, 2022

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants