MySQL Forums
Forum List  »  Italian

query mysql con risultato diverso da server linux a server windows
Posted by: Moreno Forlani
Date: July 10, 2012 07:22AM

Buongiorno a tutti, sono nuovo del forum.
Ho un problema con una query che viene eseguita da un'applicazione (non fatta da me) e che con mysql su windows funziona, mentre su server linux no, o meglio, funziona diversamente.

la versione installata sul server linux è la 5.1.x (CentOS), quella sul pc windows 7 se non ricordo male è la 5.0.

la query incriminata (che in realtà sono 3! ) è la seguente:
SET SQL_SELECT_LIMIT=0;SELECT * FROM ATDETTCONTROLLO WHERE CODORG_DRC = 'DETE' AND ANNO_DRC = 2012 AND TIPO_DRC = 'PRP' AND CODSET_DRC = '';SET sql_select_limit=-1

A parte il warning dell'ultima SET, ovviamente la select non restituisce nulla sulla macchina linux e blocca l'applicativo, mentre sulla macchina windows si procede senza problemi.
La stessa query con il parametro CODORG_DRC differente funziona perfettamente sia su linux che windows.

Non ne vengo a capo.

Grazie

Options: ReplyQuote


Subject
Views
Written By
Posted
query mysql con risultato diverso da server linux a server windows
2608
July 10, 2012 07:22AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.