Skip to content
This repository
Browse code

[osx/ios] - use the same sqlite_prepare_v2 function on darwin as on a…

…ll other platforms. Its not a 1:1 replacement and might even be resulting strange behaviour on broken db's. Since that workaround was introduced 4 years ago because of missing symbols and the symbol is there now - we just use the same code now for osx aswell - use the same sqlite_prepare_v2 function on darwin as on all other platforms. Its not a 1:1 replacement and might even be resulting strange behaviour on broken db's. Since that workaround was introduced 4 years ago because of missing symbols and the symbol is there now - we just use the same code now for osx aswell..
  • Loading branch information...
commit 338a0f523cee622ad3aff3ea17dd8f8b23f21680 1 parent 332bbf7
Memphiz authored November 18, 2012

Showing 1 changed file with 0 additions and 4 deletions. Show diff stats Hide diff stats

  1. 4  xbmc/dbwrappers/sqlitedataset.cpp
4  xbmc/dbwrappers/sqlitedataset.cpp
@@ -608,11 +608,7 @@ bool SqliteDataset::query(const char *query) {
608 608
   close();
609 609
 
610 610
   sqlite3_stmt *stmt = NULL;
611  
-  #if defined(TARGET_DARWIN)
612  
-  if (db->setErr(sqlite3_prepare(handle(),query,-1,&stmt, NULL),query) != SQLITE_OK)
613  
-  #else
614 611
   if (db->setErr(sqlite3_prepare_v2(handle(),query,-1,&stmt, NULL),query) != SQLITE_OK)
615  
-  #endif
616 612
     throw DbErrors(db->getErrorMsg());
617 613
 
618 614
   // column headers

0 notes on commit 338a0f5

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