MedicOneSystems / MedicOneSystems/livewire-datatables
Wrong Syntax for Order Column Names
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.2k
- Forks
- 257
- PR merge metrics
- No merged PRs in 30d
Description
I am using here MSSQL and i got an error if columns are configured because of the order by Clause.
SQLSTATE[HY000]: General error: 20018 Incorrect syntax near '`'
I think it will be a problem with the syntax depending of the quotes because the column name is wrapped in simple quotes like:
order by `Gruppe` desc
The correct syntax should be
ORDER BY 'Gruppe' DESC
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, entry point, or test is named. Start by reproducing configured-column ordering against MSSQL and trace where the ORDER BY clause is generated; done means the generated query uses valid MSSQL identifier quoting and ordering works without the reported syntax error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php, sql
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100