The following query is valid: select first 1* from RDB$DATABASE no Space between 1 and * I think this should raise an Exception.