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 - Execute Command :Says" Invalid Character at Pos 89 " - Proper Guidance for Error Resloution reqd
Summary: Execute Command :Says" Invalid Character at Pos 89 " - Proper Guidance for Er...
Status: VERIFIED WONTFIX
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Other
: P3 blocker (vote)
Assignee: issues@db
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-10 18:57 UTC by Sakthivel Gopal
Modified: 2006-02-27 10:06 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.