On Thu, Apr 03, 2014 at 02:02:08PM -0700, julien2412 [via Document Foundation Mail Archive] wrote:
<br/><br/>> I found another part however:
<br/>>    1622 sal_Bool SAL_CALL ODatabaseMetaData::ownDeletesAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
<br/>> ...
<br/>>    1641     return (nValue & SQL_CA2_SENSITIVITY_DELETIONS) != SQL_CA2_SENSITIVITY_DELETIONS;
<br/>>    1642 }
<br/><br/>> whereas we have:
<br/>>    1644 sal_Bool SAL_CALL ODatabaseMetaData::ownInsertsAreVisible( sal_Int32 setType ) throw(SQLException, RuntimeException, std::exception)
<br/>> ...
<br/>>    1663     return (nValue & SQL_CA2_SENSITIVITY_ADDITIONS) ==  SQL_CA2_SENSITIVITY_ADDITIONS;
<br/>>    1664 }
<br/><br/>> (See
<br/>> <a href="http://opengrok.libreoffice.org/xref/core/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx#1622" target="_top" rel="nofollow" link="external">http://opengrok.libreoffice.org/xref/core/connectivity/source/drivers/odbc/ODatabaseMetaData.cxx#1622</a>)
<br/>> One of them must be wrong.
<br/><br/><br/>It would seem to me that indeed the "ownDeletesAreVisible" is
<br/>wrong. OTOH, it was "==" and it was changed in (by Ocke Janssen, not Olivier
<br/>Bolte, who as far as I understand has done the merge):
<br/><br/><br/>commit bb075c9e3f2f8e0e9ce073a3dad5201f4e5fcc91
<br/>Author: Oliver Bolte <<a href="/user/SendEmail.jtp?type=node&node=4104066&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>>
<br/>Date:   Fri Mar 18 08:57:23 2005 +0000
<br/><br/>    INTEGRATION: CWS dba25 (1.27.204); FILE MERGED
<br/>    2005/03/04 11:37:35 oj 1.27.204.2: simple correct for ownDeletesAreVisible
<br/>    2005/03/04 10:12:19 oj 1.27.204.1: correct operator order
<br/><br/><br/>So I would like to be cautious there. I cannot find any definite
<br/>source whether "ownDeletesAreVisible" means "the deleted rows are
<br/>still visible" or "the delete action is visible -> the deleted rows
<br/>are not visible". If we can find some good documentation or example
<br/>from another JDBC driver...
<br/><br/>-- 
<br/>Lionel
<br/>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://nabble.documentfoundation.org/About-parts-in-ODatabaseMetaData-cxx-connectivy-module-odbc-part-tp4104005p4104066.html">Re: About parts in ODatabaseMetaData.cxx (connectivy module/odbc part)</a><br/>
Sent from the <a href="http://nabble.documentfoundation.org/Dev-f1639786.html">Dev mailing list archive</a> at Nabble.com.<br/>