diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2018-08-31 18:20:50 +0200 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2018-09-01 14:46:27 +0200 |
commit | 897f9c0dbcfdf895668bea1a1ad965542979a974 (patch) | |
tree | 3bb79782f8b81dce017b28017ab41c534fa9e642 /connectivity/source | |
parent | package Indonesian (id) dictionaries into installset (diff) | |
download | core-897f9c0dbcfdf895668bea1a1ad965542979a974.tar.gz core-897f9c0dbcfdf895668bea1a1ad965542979a974.zip |
mysqlc: implement beforeFirst and fix findColumn
Change-Id: I9a12ef6c61b83f588be89ed9aff301d570155d74
Reviewed-on: https://gerrit.libreoffice.org/59880
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'connectivity/source')
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx | 2 | ||||
-rw-r--r-- | connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx b/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx index f54ded42d5e9..a194b77b9f46 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_prepared_resultset.cxx @@ -118,7 +118,7 @@ sal_Int32 SAL_CALL OPreparedResultSet::findColumn(const rtl::OUString& columnNam MutexGuard aGuard(m_aMutex); checkDisposed(OPreparedResultSet_BASE::rBHelper.bDisposed); - MYSQL_FIELD* pFields = mysql_fetch_field(m_pResult); + MYSQL_FIELD* pFields = mysql_fetch_fields(m_pResult); for (sal_Int32 i = 0; i < m_nFieldCount; ++i) { if (columnName.equalsIgnoreAsciiCaseAscii(pFields[i].name)) diff --git a/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx b/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx index f6c41e182a01..9234ad532ea5 100644 --- a/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx +++ b/connectivity/source/drivers/mysqlc/mysqlc_resultset.cxx @@ -143,7 +143,7 @@ sal_Int32 SAL_CALL OResultSet::findColumn(const rtl::OUString& columnName) MutexGuard aGuard(m_aMutex); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); - MYSQL_FIELD* pFields = mysql_fetch_field(m_pResult); + MYSQL_FIELD* pFields = mysql_fetch_fields(m_pResult); for (unsigned int i = 0; i < fieldCount; ++i) { if (columnName.equalsIgnoreAsciiCaseAscii(pFields[i].name)) @@ -542,8 +542,7 @@ void SAL_CALL OResultSet::beforeFirst() { MutexGuard aGuard(m_aMutex); checkDisposed(OResultSet_BASE::rBHelper.bDisposed); - - mysqlc_sdbc_driver::throwFeatureNotImplementedException("OResultSet::beforeFirst", *this); + mysql_data_seek(m_pResult, 0); } void SAL_CALL OResultSet::afterLast() |