Bidirectional cursor is not positioned by the first call of FETCH LAST
----------------------------------------------------------------------
Key: CORE-4229
URL: http://tracker.firebirdsql.org/browse/CORE-4229
Project: Firebird Core
Issue Type: Bug
Components: Engine
Affects Versions: 3.0 Alpha 1
Reporter: Simonov Denis
Bidirectional cursor is not positioned by the first call of FETCH LAST
EXECUTE BLOCK
RETURNS (
NAME CHAR(31),
RC INT)
AS
DECLARE C SCROLL CURSOR FOR (
SELECT RDB$FIELD_NAME
FROM RDB$FIELDS);
BEGIN
OPEN C;
FETCH FIRST FROM C
INTO :NAME;
RC = ROW_COUNT;
SUSPEND;
FETCH LAST FROM C
INTO :NAME;
RC = ROW_COUNT;
SUSPEND;
CLOSE C;
END
Result:
NAME RC
--------------------------------
RDB$VIEW_CONTEXT 1
RDB$19775 1
EXECUTE BLOCK
RETURNS (
NAME CHAR(31),
RC INT)
AS
DECLARE C SCROLL CURSOR FOR (
SELECT RDB$FIELD_NAME
FROM RDB$FIELDS);
BEGIN
OPEN C;
/*
FETCH FIRST FROM C
INTO :NAME;
RC = ROW_COUNT;
SUSPEND;
*/
FETCH LAST FROM C
INTO :NAME;
RC = ROW_COUNT;
SUSPEND;
CLOSE C;
END
Result:
NAME RC
----------------------
<null> 0
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel