To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=114500
                 Issue #|114500
                 Summary|ResultSet returns identical data for all rows when usi
                        |ng aliases
               Component|Database access
                 Version|OOo 3.3 Beta 1
                Platform|PC
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|none
             Assigned to|dbaneedsconfirm
             Reported by|cascabel





------- Additional comments from casca...@openoffice.org Tue Sep 14 18:47:53 
+0000 2010 -------
OOo3.3-dev 3.3.0 OOO330m3 (Build:9519)
OS: Windows XP + SP3
Component: Base + Embedded HSQLDB
JRE 6 Update 21

(It may affect other platforms and/or database engines)


Observed abnormal results when using
CreateUNOService("com.sun.star.sdb.ResultSet") with
.CommandType=com.sun.star.sdb.CommandType.COMMAND
 and a SQL sentence that uses aliases for table names.

The ResultSet returns the data from the first row, regardless of the actual row
pointed.

I'm going to attach a sample file, for explanation will be long and maybe 
confusing.

1. Open attached file (enable macros)
2. Run macro "Main" in module "Module1" of library "[ResultSetBug].Standard"
(Menu/Tools/Macros/Run Macro...)

The macro creates a "com.sun.star.sdb.ResultSet" based on one table, then goes
through all three records and displays its content.
It does this with two different SQL sentences:

Sentence A: "SELECT ""ID"",""Text"" FROM ""Table"""
Sentence B: "SELECT T1.""ID"",T1.""Text"" FROM ""Table"" AS T1"

As you can see, they are the same, except B uses an alias for the table name.
Note that both of them work properly on OOo3.2.x. They should do as well under
3.3, but the fact is that Sentence B causes the recordset
 to return the data corresponding to the first row, no matter what is the actual
current row (run the macro for details).

I don't know what the cause of the problem may be, but noticed that this
malfunction ended when I replaced all aliases with
 explicit table names in my own Base files.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@dba.openoffice.org
For additional commands, e-mail: issues-h...@dba.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to