﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	db_engine	os_version
603	Oracle DataManager emits invalid SQL when LIMIT is specified and no WHERE clause exists	bweaver	bweaver	"See get_sys_table_field dataview.  It has a subselect in the SELECT clause and no WHERE after the main FROM clause.  This causes the Oracle DataManager to put the WHERE ROWNUM < X on the subselect instead of the outer SELECT.

Need to change row limiting SQL to wrap the entire statement so it works properly with UNION and UNION ALL as well -- just like in SQL Server.  Example:

{{{
select * from sys_table
}}}

becomes this with Limit=20 and Offset=10:
{{{
select * from (select * from sys_table) where rownum < 20 and rownum > 10
}}}"	defect	released	critical	Release Candidate 3	Middle Tier	2.0.1635					Oracle	N/A
