MySQL Forums
Forum List  »  Italian

Re: '--' = Syntax Problem???
Posted by: Lorenzo C.
Date: March 31, 2010 03:16AM

Il connector che utilizzo è: mysql-connector-java-5.1.12-bin.jar
Se non sbaglio è l'ultimo messo a disposizione.

Ho avuto anche io il tuo sospetto, Gavin, ma se '--' è sempre interpretato dal Connector come commento, non mi spiego come mai questo caso funziona:

INSERT INTO `fornitori` (`id`, `C_FORN`, `DESCR`) VALUES (27,'--','--')
;

Il record viene inserito correttamente. Mi aspettavo anche li un errore, Il Connector doveva interpretare l'insert row così:

INSERT INTO `fornitori` (`id`, `C_FORN`, `DESCR`) VALUES (27, '
;

e dare errore.

Ho pensato anche io ad un bug e quasi quasi lo segnalerei.
Se vuoi farlo tu, ok, nessun problema.
L'avrei fatto io ma non sono pratico della procedura "How to Report a Bug". Girami il link della segnalazione.

Grazie ancora Gavin!

Options: ReplyQuote


Subject
Views
Written By
Posted
4800
March 24, 2010 04:19AM
2189
March 30, 2010 10:55AM
Re: '--' = Syntax Problem???
2420
March 31, 2010 03:16AM


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.