Apache OpenOffice (AOO) Bugzilla – Issue 18592
The UI shows ADO/MDB columns in alphabetical order.
Last modified: 2007-03-02 12:50:00 UTC
This problem pertains to an ADO datasource accessed via the following URL: sdbc:ado:Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Program Files\Common Files\ODBC\Data Sources\FINANCE.mdb;Mode=Share Deny None;Persist Security Info=False The UI always alphabetizes the column names. To see this use Data Source Administration to create a new table. Create columns from the top of C Integer, B Integer, A Integer. Make C the Primary Key and save the table. Now, edit the table and you will see the columns displayed as A, B, C instead of the correct C, B, A. It does this consistently for all my tables whether in the editor, Query Designer, whatever.
confirming, targeting, changing priority to P4, changing ownership fs->oj: When looking at the table (with C,B,A as described by Jeffery) in MS Access, the columns are in the order C,B,A. Looking at it in OOo indeed gives A,B,C. I assume this is about the inconsistencies the jet engine has with telling us column orders.
Hi Jeffery, I'm sorry to say that the column list, is what I get from ADOX. The collection give all names in a sorted way. So would only have the chance to execute a query like "select * from X where 0=1" to get a possible column order. But is this the correct order or is it the order which the method to ask the DatabaseMetaData for the columns of the table? So we got three ways to get a sort order. Which one is the correct one. I think that the implementors of ADOX have to change the behavior of the columns collection. Sorry, Ocke
so we can close this issue
change subcomponent to 'none'
*** Issue 74916 has been marked as a duplicate of this issue. ***