This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 19297

Summary: Execute Command :Says" Invalid Character at Pos 89 " - Proper Guidance for Error Resloution reqd
Product: db Reporter: Sakthivel Gopal <sakthivelg>
Component: CodeAssignee: issues@db <issues>
Status: VERIFIED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:

Description Sakthivel Gopal 2002-01-10 18:57:01 UTC
When trying to use execute command dialog to execute an sql on a database 
connection, if there are some errors , it says like  " Invalid character at 
Position 89", it would be diffifuclt for users to count to 89th character to 
find out what exactly is the error. There needs to be better mechanisms to help 
user resolve his errors.
Reproducibile :

Run these SQL's, you would notice the difficulty.

On PointBase :

CREATE TABLE APP_USERS (
       USERNAME VARCHAR(20) PRIMARY KEY,
       PASSWORD VARCHAR(10) NOT NULL,
       USERTYPE VARCHAR(20) NOT NULL,
       FULL_NAME VARCHAR(40) NOT NULL,
       ADDRESS VARCHAR(50) NOT NULL,
       EMAIL VARCHAR(50) NOT NULL)


INSERT INTO APP_USERS
( "USERNAME", "PASSWORD", "USERTYPE", "FULL_NAME", "ADDRESS", "EMAIL")
VALUES ("sakthi", "sakthi", "doctor", "Sakthivel Gopal", "16 Network 
Circle",  "sakthi@sun.org")

Error Message Youy get :
"Unable to execute query, Only constant expressions allowed here at Position 
108".

(Solution is Change \" to \' (single quote) in values )

This would need user to count to 108 to find out the invalid character.
We need better resolution mechanisms.
Comment 1 Radko Najman 2002-01-15 10:11:40 UTC
Postponed for new database module based on MDR. The command editor in
this module should display cursor position somewhere in the status line.
Comment 2 Lukasz Grela 2006-02-27 10:06:00 UTC
v.