SQLyog aggiungendo automaticamente LIMIT 0, 1000 a tutte le domande
Domanda
SQLyog aggiungendo automaticamente LIMIT 0, 1000 a tutte le query in un database che sta causando il seguito query (select next_hi from hibernate_unique_key for update
) a fallire.
Query : select next_hi from hibernate_unique_key for update **LIMIT 0, 1000**
Error Code : 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'LIMIT 0, 1000' at line 2
Lo stesso non avviene in altri database. Dove per controllare e risolvere questo problema?
Aggiorna : Sembra SQLyog è aggiungendo la clausola LIMIT, nessun problema da sospensione o prompt dei comandi. Ma che sta succedendo in un solo database non succede in altri database.
Soluzione
Questo è stato un bug che è stato fissato in SQLyog 8.4. SQLyog bug fix (8.4) - In esecuzione di istruzioni SELECT con le clausole come PROCEDURA, IN FILE, FOR UPDATE, ecc, SQLyog è stata aggiunta clausola LIMIT se l'opzione scheda risultato paging è abilitato. L'ultima versione di SQLyog può essere trovata qui .