diff options
author | Owen Williams <owilliams@mixxx.org> | 2020-12-16 19:01:46 -0500 |
---|---|---|
committer | Owen Williams <owilliams@mixxx.org> | 2020-12-16 19:01:46 -0500 |
commit | db19a9376b6cb53f9ab9272c1bd7e1c2bb371a9b (patch) | |
tree | 7abc19b91a70d34c6633621ce2e9db08c989ccd7 /src/library | |
parent | c44176c97e1f129d6ac801ea913a44037036f921 (diff) |
column cache fix: use lower case for namespace
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/dao/trackschema.cpp | 4 | ||||
-rw-r--r-- | src/library/dao/trackschema.h | 4 | ||||
-rw-r--r-- | src/library/mixxxlibraryfeature.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/library/dao/trackschema.cpp b/src/library/dao/trackschema.cpp index 7f89e9a839..aaba5830b8 100644 --- a/src/library/dao/trackschema.cpp +++ b/src/library/dao/trackschema.cpp @@ -1,7 +1,7 @@ #include "library/dao/trackschema.h" namespace mixxx { -namespace TrackSchema { +namespace trackschema { QString tableForColumn(const QString& columnName) { if (columnName == TRACKLOCATIONSTABLE_FSDELETED || columnName == TRACKLOCATIONSTABLE_LOCATION) { return QStringLiteral(TRACKLOCATIONS_TABLE); @@ -9,5 +9,5 @@ QString tableForColumn(const QString& columnName) { // This doesn't detect unknown columns, but that's not really important here. return QStringLiteral(LIBRARY_TABLE); } -} // namespace TrackSchema +} // namespace trackschema } // namespace mixxx diff --git a/src/library/dao/trackschema.h b/src/library/dao/trackschema.h index 0284b4fc6a..de3d2b057f 100644 --- a/src/library/dao/trackschema.h +++ b/src/library/dao/trackschema.h @@ -91,10 +91,10 @@ const QStringList DEFAULT_COLUMNS = { LIBRARYTABLE_COVERART_HASH}; namespace mixxx { -namespace TrackSchema { +namespace trackschema { // TableForColumn returns the name of the table that contains the named column. QString tableForColumn(const QString& columnName); -} // namespace TrackSchema +} // namespace trackschema } // namespace mixxx #endif //MIXXX_TRACKSCHEMA_H diff --git a/src/library/mixxxlibraryfeature.cpp b/src/library/mixxxlibraryfeature.cpp index 862d9221f8..1e38c3fce3 100644 --- a/src/library/mixxxlibraryfeature.cpp +++ b/src/library/mixxxlibraryfeature.cpp @@ -33,7 +33,7 @@ MixxxLibraryFeature::MixxxLibraryFeature(Library* pLibrary, QStringList columns = DEFAULT_COLUMNS; QStringList qualifiedTableColumns; for (const auto& col : columns) { - qualifiedTableColumns.append(mixxx::TrackSchema::tableForColumn(col) + + qualifiedTableColumns.append(mixxx::trackschema::tableForColumn(col) + QLatin1Char('.') + col); } |