forums › forums › SQLyog › SQLyog: Bugs / Feature Requests › I'm first
- This topic is empty.
-
AuthorPosts
-
-
June 21, 2005 at 4:58 pm #9064peterlaursenParticipant
It seems you overlooked an earlier bug report concerning the editor/SQL-pane (from an earlier rather confued thread)
This does not work
-
June 21, 2005 at 5:01 pm #18208peterlaursenParticipant
however this does.
Problem is that the “;” concluding/ending the first SQL-statement is not being “caught” and thus not passed to MySQL in a correct way due to statement having more characters than the editor can handle.
-
June 21, 2005 at 5:03 pm #18209peterlaursenParticipant
more correct:
having more characters than the editor can handle.
>>>>
having more characters IN ONE LINE than the editor can handle.
when inserting a linefeed before the “;” it works
-
June 22, 2005 at 3:10 am #18210RiteshMember
You had reported an error regarding incorrect colorisation of SQL statements in editor. Can you mail me a dump of your database and the query to reproduce the error?
-
June 22, 2005 at 3:31 am #18211peterlaursenParticipant
In the very same thread I mentioned this problem too. I even posted one extra reply to remind you ..
Quote:Posted: May 21 2005, 05:59 PM ÂÂBTW – that reminds me that in the above examples the eidtor does not recognize the concluding
“………. ; ”
of each statement.
However if I put in a linebreak like
“…….. <<<
;” – it does.
It must be all that rain in India … 😮
Again you can have a dump from one of the tables from my webserver and import to MySQL 5.x
then execute this SQL (in one line) and you will get the error:
Code:CREATE ALGORITHM=UNDEFINED VIEW `musik`.`kunstner` AS select count(0) AS `##`,`musik`.`mp3_filer`.`Kunstner` AS `Kunstner`,`musik`.`mp3_filer`.`Genre` AS `Genre`,`musik`.`mp3_filer`.`Albumtitel` AS `Albumtitel` from `musik`.`mp3_filer` where ((`musik`.`mp3_filer`.`Kunstner` is not null) and (`musik`.`mp3_filer`.`Albumtitel` is not null) and (`musik`.`mp3_filer`.`Kunstner` <> _latin1'') and (`musik`.`mp3_filer`.`Albumtitel` <> _latin1'')) group by `musik`.`mp3_filer`.`Albumtitel`,`musik`.`mp3_filer`.`Kunstner`,`musik`.`mp3_filer`.`Genre` order by `musik`.`mp3_filer`.`Kunstner`,`musik`.`mp3_filer`.`Genre`,`musik`.`mp3_filer`.`Albumtitel`;this however is OK (linebreak before concluding “;”):
Code:CREATE ALGORITHM=UNDEFINED VIEW `musik`.`kunstner` AS select count(0) AS `##`,`musik`.`mp3_filer`.`Kunstner` AS `Kunstner`,`musik`.`mp3_filer`.`Genre` AS `Genre`,`musik`.`mp3_filer`.`Albumtitel` AS `Albumtitel` from `musik`.`mp3_filer` where ((`musik`.`mp3_filer`.`Kunstner` is not null) and (`musik`.`mp3_filer`.`Albumtitel` is not null) and (`musik`.`mp3_filer`.`Kunstner` <> _latin1'') and (`musik`.`mp3_filer`.`Albumtitel` <> _latin1'')) group by `musik`.`mp3_filer`.`Albumtitel`,`musik`.`mp3_filer`.`Kunstner`,`musik`.`mp3_filer`.`Genre` order by `musik`.`mp3_filer`.`Kunstner`,`musik`.`mp3_filer`.`Genre`,`musik`.`mp3_filer`.`Albumtitel`;I can't be sure, but I believe it is the number of chars IN ONE LINE before the concluding “;” alone that is the problem, and that it has nothing to do with the actual content of the statement. But that sort of long statements will occur with machine-generated SQL. Actually this one is pasted from the objects-pane in SQLyog itself.
-
June 22, 2005 at 3:34 am #18212peterlaursenParticipant
baah …. 😡
the code-tag seems to throw the linebreak away. Have a look at the screendumps instead!
-
June 22, 2005 at 3:38 am #18213peterlaursenParticipant
I just want to point out that it's no big deal for me anymore since I know. But it can be very annoying getting error messages like this with a correct statement if you don't know!
-
June 22, 2005 at 2:07 pm #18214RiteshMember
Bug fixed.
Fix will be available from BETA 2.
-
June 22, 2005 at 2:13 pm #18215peterlaursenParticipant
Ok … then it's 3-1 to you. But I got this one 😀
-
-
AuthorPosts
- You must be logged in to reply to this topic.