Permalink
Browse files

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

  • Loading branch information...
1 parent f13566b commit dc8abe02a92c891b7fcdb892f3bc1dc86cd312bf @Montellese committed Jul 20, 2012
Showing with 6 additions and 0 deletions.
  1. +5 −0 xbmc/dbwrappers/Database.cpp
  2. +1 −0 xbmc/dbwrappers/Database.h
@@ -203,6 +203,11 @@ CStdString CDatabase::GetSingleValue(const CStdString &strTable, const CStdStrin
return GetSingleValue(query, m_pDS);
}
+CStdString CDatabase::GetSingleValue(const CStdString &query)
+{
+ return GetSingleValue(query, m_pDS);
+}
+
bool CDatabase::DeleteValues(const CStdString &strTable, const CStdString &strWhereClause /* = CStdString() */)
{
bool bReturn = true;
@@ -83,6 +83,7 @@ class CDatabase
* @return The requested value or an empty string if it wasn't found.
*/
CStdString GetSingleValue(const CStdString &strTable, const CStdString &strColumn, const CStdString &strWhereClause = CStdString(), const CStdString &strOrderBy = CStdString());
+ CStdString GetSingleValue(const CStdString &query);
/*! \brief Get a single value from a query on a dataset.
\param query the query in question.

0 comments on commit dc8abe0

Please sign in to comment.