"Incorrect syntax near 'OFFSET'. Invalid usage of the option NEXT in the FETCH statement"
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Riproduci il terzo clic sull'ordinamento della colonna descritto nell'issue e ispeziona l'SQL generato. Segui il punto in cui la rimozione dell'ordinamento rimuove ORDER BY, quindi assicurati che la query OFFSET/FETCH risultante rimanga valida; il lavoro è completato quando il ciclo ASC, DESC e nessun ordinamento non produce più l'errore di sintassi segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I get this error when I click a column sort 3 times. It sorts ASC on first click, the DESC, then error.
The generated SQL is:
SELECT
[InventoryServer].[Id] as 'InventoryServer.Id',
[InventoryServer].[Name] as 'InventoryServer.Name',
[InventoryServer].[DockDate] as 'InventoryServer.DockDate',
[InventoryServer].[BillingStartDate] as 'InventoryServer.BillingStartDate',
[PatchPartyDowntime].[Name] as 'PatchPartyDowntime.Name',
[VirtualEnvironment].[Description] as 'VirtualEnvironment.Description'
-- Many more redacted
FROM
[InventoryServer]
LEFT JOIN [ContactGroup] ON [ContactGroup].[Id] = [InventoryServer].[ContactGroupId]
LEFT JOIN [DisasterRecoveryTeir] ON [DisasterRecoveryTeir].[Id] = [InventoryServer].[DisasterRecoveryTeirId]
LEFT JOIN [Domain] ON [Domain].[Id] = [InventoryServer].[DomainId]
-- Many more redacted
WHERE
(1 = 1) OFFSET 0 ROWS FETCH NEXT 10 ROWS ONLY
It appears the order by is ripped away as a part of removing the sort on my third click.
Let me know if you need more code.
- Lingua principale
- C#
- Stelle
- 19
- Fork
- 11
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DataTables/NET
-
Add extensions for DI Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
DataTables/NET#27 · 1 commento ·
-
Async methods? Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
DataTables/NET#25 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
DataTables/NET#24 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
DataTables/NET#18 · 2 commenti ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
DataTables/NET#17 ·
Tutte le issue di DataTables/NET
Issue simili
-
type/automation type/tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
t/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
ci-failure-cause test-failure
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
area:auth FE mvp P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
klasolsson81/jobbliggaren#1788 ·