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.
Typing any query with limit on new line, ie: select * from table_name where id > 12 limit 10 causes SQL error (Error code 0, SQL state 42601: ERROR: syntax error at or near "LIMIT"). But select * from table_name where id > 12 limit 10 -- tab or space at first pos or select * from table_name where id > 12 limit 10 is parsed OK. Product Version = NetBeans IDE 6.9 (Build 201006101454) Operating System = Windows 7 version 6.1 running on x86 Java; VM; Vendor = 1.6.0_20 Runtime = Java HotSpot(TM) Client VM 16.3-b01
Please, what DB are you using? Thanks
Sorry, i forgot to mention this. PostgresSQL 8.4.2 (org.postgresql.Driver) Thanks.
Same thing happens with MySQL 5.5.8.
This is not reproducible in netbeans 7.0.1 using the supplied mysql driver and against an mysql 5.1.58 server. Same for postgresql 9.1 and the build in driver. Please test again und reopen if the bug is still present. An example with exact SQLs und server version would be helpful in this case.