Bug #4674 Line number starts from 0
Submitted: 21 Jul 2004 15:20 Modified: 17 Aug 2004 22:31
Reporter: Jeff Lu Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.0.3 Alpha OS:Windows (XP)
Assigned to: Michael G. Zinner CPU Architecture:Any

[21 Jul 2004 15:20] Jeff Lu
Description:
When Query Browser reports error found in the query, it reports the line number and the error.
The line number starts from zero. It will confuse user if they switch between the query browser and other editors.

How to repeat:
Create a query with error in it.
Count the number of lines that the error is on - 1 is the reported line number.

Suggested fix:
+1
[23 Jul 2004 0:22] Matthew Lord
I cannot repeat this.  The Description of the error that I get back always says ... at line 1.

Are you talking of something else besides the error description at the bottom?

Best Regards
[23 Jul 2004 21:51] Jeff Lu
It only happens within the script editor.
With QueryBrowser, it reports the line number correctly.

Within script editor, when moving cursor around, it reports the cursor position correctly on the status bar, though.
[17 Aug 2004 22:31] Michael G. Zinner
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html