View Issue Details

IDProjectCategoryView StatusLast Update
0001023Database Workbench v5Visual Query Builderpublic2014-09-18 10:36
ReporterMartijn Tonies Assigned ToMartijn Tonies  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Platform64bit DesktopOSWindows 7 x64OS Version6.1.7601
Product Version5.0 
Fixed in Version5.0.2 
Summary0001023: Firebird TRIM Function with extended paramters not correctly parsed by VQB.
DescriptionThe VQB can only parse a very basic TRIM(Varchar) function but breaks as soon as extra parameters are present when trying to edit it using Visual Query Builder. The use of the function works without any problems when executing from SQL Editor and it is only the VQB that's unable to parse the function correctly it seems.
Steps To ReproduceThe following will be parsed and opened by VQB:
SELECT TRIM(REGISTRATION) FROM VEHICLES

Trying to edit any of the following will fail:

SELECT TRIM('.' FROM REGISTRATION) FROM VEHICLES

(Invalid SELECT statement.
 Unexpected token "FROM" at line 1, pos 17)

SELECT TRIM(TRAILING 'Y' FROM REGISTRATION) FROM VEHICLES

(Invalid SELECT statement.
 Unexpected token "TRAILING" at line 1, pos 13)
Additional InformationTRIM()
Available in: DSQL, PSQL
Added in: 2.0

Description: Removes leading and/or trailing spaces (or optionally other strings) from the input string. The result is a VARCHAR(n) with n the formal length of the input string.

Result type: VARCHAR(n)

Syntax:
    TRIM ([<adjust>] str)
    <adjust> ::= {[where] [what]} FROM
    where ::= BOTH | LEADING | TRAILING /* default is BOTH */
    what ::= The substring to be removed (repeatedly if necessary)
                   from str's head and/or tail. Default is ' ' (space).

Syntax and examples available here: http://www.firebirdsql.org/refdocs/langrefupd20-trim.html
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2014-09-09 15:03 Martijn Tonies New Issue
2014-09-09 15:03 Martijn Tonies Status new => assigned
2014-09-09 15:03 Martijn Tonies Assigned To => Martijn Tonies
2014-09-09 15:03 Martijn Tonies Issue generated from: 0000794
2014-09-09 15:03 Martijn Tonies Project Database Workbench v4 => Database Workbench v5
2014-09-09 15:04 Martijn Tonies Status assigned => resolved
2014-09-09 15:04 Martijn Tonies Fixed in Version => 5.0.2
2014-09-09 15:04 Martijn Tonies Resolution open => fixed
2014-09-18 10:36 Martijn Tonies Status resolved => closed