Kaydet (Commit) 98a03d8f authored tarafından Tamas Bunth's avatar Tamas Bunth Kaydeden (comit) Tamás Bunth

mysqlc: Add library to log areas and put some

warnings into databasemetadata

Change-Id: I4c2841e9174e738fff6b8627f8860588c7838c49
Reviewed-on: https://gerrit.libreoffice.org/59755
Tested-by: Jenkins
Reviewed-by: 's avatarTamás Bunth <btomi96@gmail.com>
üst 70492ce8
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include <com/sun/star/sdbc/ColumnType.hpp> #include <com/sun/star/sdbc/ColumnType.hpp>
#include <com/sun/star/lang/XInitialization.hpp> #include <com/sun/star/lang/XInitialization.hpp>
#include <sal/log.hxx>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include "mysqlc_general.hxx" #include "mysqlc_general.hxx"
#include "mysqlc_statement.hxx" #include "mysqlc_statement.hxx"
...@@ -101,6 +102,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength() { return 64; } ...@@ -101,6 +102,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxCursorNameLength() { return 64; }
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections() sal_Int32 SAL_CALL ODatabaseMetaData::getMaxConnections()
{ {
SAL_WARN("connectivity.mysqlc", "method not implemented");
// TODO // TODO
// SELECT @@max_connections // SELECT @@max_connections
return 100; return 100;
...@@ -110,6 +112,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable() { return 512; } ...@@ -110,6 +112,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getMaxColumnsInTable() { return 512; }
sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength() sal_Int32 SAL_CALL ODatabaseMetaData::getMaxStatementLength()
{ {
SAL_WARN("connectivity.mysqlc", "method not implemented");
// TODO // TODO
// "SHOW VARIABLES LIKE 'max_allowed_packet'" // "SHOW VARIABLES LIKE 'max_allowed_packet'"
return 32767; return 32767;
...@@ -123,18 +126,21 @@ sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs() { return true; ...@@ -123,18 +126,21 @@ sal_Bool SAL_CALL ODatabaseMetaData::doesMaxRowSizeIncludeBlobs() { return true;
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers() sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseQuotedIdentifiers()
{ {
SAL_WARN("connectivity.mysqlc", "method not implemented");
// TODO // TODO
return false; return false;
} }
sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers() sal_Bool SAL_CALL ODatabaseMetaData::storesLowerCaseIdentifiers()
{ {
SAL_WARN("connectivity.mysqlc", "method not implemented");
//TODO; //TODO;
return false; return false;
} }
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers() sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers()
{ {
SAL_WARN("connectivity.mysqlc", "method not implemented");
// TODO // TODO
return false; return false;
} }
...@@ -142,18 +148,21 @@ sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers() ...@@ -142,18 +148,21 @@ sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseQuotedIdentifiers()
sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers() sal_Bool SAL_CALL ODatabaseMetaData::storesMixedCaseIdentifiers()
{ {
// TODO // TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
return false; return false;
} }
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers() sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseQuotedIdentifiers()
{ {
// TODO // TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
return false; return false;
} }
sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers() sal_Bool SAL_CALL ODatabaseMetaData::storesUpperCaseIdentifiers()
{ {
// TODO // TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
return false; return false;
} }
...@@ -262,6 +271,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames() { return tr ...@@ -262,6 +271,7 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsTableCorrelationNames() { return tr
sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert(sal_Int32 /*fromType*/, sal_Int32 /*toType*/) sal_Bool SAL_CALL ODatabaseMetaData::supportsConvert(sal_Int32 /*fromType*/, sal_Int32 /*toType*/)
{ {
// TODO // TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
return false; return false;
} }
...@@ -291,17 +301,9 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll() ...@@ -291,17 +301,9 @@ sal_Bool SAL_CALL ODatabaseMetaData::supportsUnionAll()
return m_rConnection.getMysqlVersion() >= 40000; return m_rConnection.getMysqlVersion() >= 40000;
} }
sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers() sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseIdentifiers() { return false; }
{
// TODO
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseQuotedIdentifiers() sal_Bool SAL_CALL ODatabaseMetaData::supportsMixedCaseQuotedIdentifiers() { return false; }
{
// TODO
return false;
}
sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd() { return false; } sal_Bool SAL_CALL ODatabaseMetaData::nullsAreSortedAtEnd() { return false; }
...@@ -363,6 +365,7 @@ rtl::OUString SAL_CALL ODatabaseMetaData::getURL() ...@@ -363,6 +365,7 @@ rtl::OUString SAL_CALL ODatabaseMetaData::getURL()
rtl::OUString SAL_CALL ODatabaseMetaData::getUserName() rtl::OUString SAL_CALL ODatabaseMetaData::getUserName()
{ {
// TODO execute "SELECT USER()" // TODO execute "SELECT USER()"
SAL_WARN("connectivity.mysqlc", "method not implemented");
return rtl::OUString(); return rtl::OUString();
} }
...@@ -391,6 +394,7 @@ rtl::OUString SAL_CALL ODatabaseMetaData::getSchemaTerm() { return rtl::OUString ...@@ -391,6 +394,7 @@ rtl::OUString SAL_CALL ODatabaseMetaData::getSchemaTerm() { return rtl::OUString
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion() sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMajorVersion()
{ {
// TODO // TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
return MARIADBC_VERSION_MAJOR; return MARIADBC_VERSION_MAJOR;
} }
...@@ -403,6 +407,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation() ...@@ -403,6 +407,7 @@ sal_Int32 SAL_CALL ODatabaseMetaData::getDefaultTransactionIsolation()
sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion() sal_Int32 SAL_CALL ODatabaseMetaData::getDriverMinorVersion()
{ {
// TODO // TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
return MARIADBC_VERSION_MINOR; return MARIADBC_VERSION_MINOR;
} }
...@@ -859,6 +864,7 @@ Reference<XResultSet> ...@@ -859,6 +864,7 @@ Reference<XResultSet>
UNO_QUERY); UNO_QUERY);
std::vector<std::vector<Any>> rRows; std::vector<std::vector<Any>> rRows;
// TODO IMPL // TODO IMPL
SAL_WARN("connectivity.mysqlc", "method not implemented");
lcl_setRows_throw(xResultSet, 7, rRows); lcl_setRows_throw(xResultSet, 7, rRows);
return xResultSet; return xResultSet;
} }
...@@ -883,6 +889,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getExportedKeys(const Any& /*c ...@@ -883,6 +889,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getExportedKeys(const Any& /*c
UNO_QUERY); UNO_QUERY);
std::vector<std::vector<Any>> rRows; std::vector<std::vector<Any>> rRows;
// TODO implement // TODO implement
SAL_WARN("connectivity.mysqlc", "method not implemented");
lcl_setRows_throw(xResultSet, 8, rRows); lcl_setRows_throw(xResultSet, 8, rRows);
return xResultSet; return xResultSet;
} }
...@@ -896,6 +903,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getImportedKeys(const Any& /*c ...@@ -896,6 +903,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getImportedKeys(const Any& /*c
UNO_QUERY); UNO_QUERY);
std::vector<std::vector<Any>> rRows; std::vector<std::vector<Any>> rRows;
// TODO implement // TODO implement
SAL_WARN("connectivity.mysqlc", "method not implemented");
lcl_setRows_throw(xResultSet, 9, rRows); lcl_setRows_throw(xResultSet, 9, rRows);
return xResultSet; return xResultSet;
} }
...@@ -933,6 +941,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getIndexInfo(const Any& /*cata ...@@ -933,6 +941,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getIndexInfo(const Any& /*cata
UNO_QUERY); UNO_QUERY);
std::vector<std::vector<Any>> rRows; std::vector<std::vector<Any>> rRows;
// TODO // TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
lcl_setRows_throw(xResultSet, 11, rRows); lcl_setRows_throw(xResultSet, 11, rRows);
return xResultSet; return xResultSet;
} }
...@@ -946,6 +955,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getBestRowIdentifier( ...@@ -946,6 +955,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getBestRowIdentifier(
UNO_QUERY); UNO_QUERY);
std::vector<std::vector<Any>> rRows; std::vector<std::vector<Any>> rRows;
// TODO // TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
lcl_setRows_throw(xResultSet, 15, rRows); lcl_setRows_throw(xResultSet, 15, rRows);
return xResultSet; return xResultSet;
} }
...@@ -960,6 +970,7 @@ Reference<XResultSet> ...@@ -960,6 +970,7 @@ Reference<XResultSet>
UNO_QUERY); UNO_QUERY);
std::vector<std::vector<Any>> rRows; std::vector<std::vector<Any>> rRows;
// TODO // TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
lcl_setRows_throw(xResultSet, 12, rRows); lcl_setRows_throw(xResultSet, 12, rRows);
return xResultSet; return xResultSet;
} }
...@@ -974,6 +985,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getCrossReference( ...@@ -974,6 +985,7 @@ Reference<XResultSet> SAL_CALL ODatabaseMetaData::getCrossReference(
UNO_QUERY); UNO_QUERY);
std::vector<std::vector<Any>> rRows; std::vector<std::vector<Any>> rRows;
// TODO // TODO
SAL_WARN("connectivity.mysqlc", "method not implemented");
lcl_setRows_throw(xResultSet, 13, rRows); lcl_setRows_throw(xResultSet, 13, rRows);
return xResultSet; return xResultSet;
} }
......
...@@ -85,6 +85,7 @@ certain functionality. ...@@ -85,6 +85,7 @@ certain functionality.
@li @c connectivity.manager @li @c connectivity.manager
@li @c connectivity.mork @li @c connectivity.mork
@li @c connectivity.mozab @li @c connectivity.mozab
@li @c connectivity.mysqlc
@li @c connectivity.odbc @li @c connectivity.odbc
@li @c connectivity.parse @li @c connectivity.parse
@li @c connectivity.postgresql @li @c connectivity.postgresql
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment