Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

CDatabase: add overloaded GetSingleValue() which takes a full query

  • Loading branch information...
commit dc8abe02a92c891b7fcdb892f3bc1dc86cd312bf 1 parent f13566b
Sascha Montellese authored
5 xbmc/dbwrappers/Database.cpp
@@ -203,6 +203,11 @@ CStdString CDatabase::GetSingleValue(const CStdString &strTable, const CStdStrin
203 203 return GetSingleValue(query, m_pDS);
204 204 }
205 205
  206 +CStdString CDatabase::GetSingleValue(const CStdString &query)
  207 +{
  208 + return GetSingleValue(query, m_pDS);
  209 +}
  210 +
206 211 bool CDatabase::DeleteValues(const CStdString &strTable, const CStdString &strWhereClause /* = CStdString() */)
207 212 {
208 213 bool bReturn = true;
1  xbmc/dbwrappers/Database.h
@@ -83,6 +83,7 @@ class CDatabase
83 83 * @return The requested value or an empty string if it wasn't found.
84 84 */
85 85 CStdString GetSingleValue(const CStdString &strTable, const CStdString &strColumn, const CStdString &strWhereClause = CStdString(), const CStdString &strOrderBy = CStdString());
  86 + CStdString GetSingleValue(const CStdString &query);
86 87
87 88 /*! \brief Get a single value from a query on a dataset.
88 89 \param query the query in question.

0 comments on commit dc8abe0

Please sign in to comment.
Something went wrong with that request. Please try again.