Changeset 15632

Show
Ignore:
Timestamp:
22.05.2008 13:26:38 (12 years ago)
Author:
mdewsnip
Message:

(Adding new DB support) Minor improvements to getinfo().

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/lib/sqliteclass.cpp

    r15631 r15632  
    8787{ 
    8888  text_t sql_cmd = "SELECT value FROM data WHERE key='" + key + "'"; 
    89  
    9089  vector<text_tmap> sql_results; 
    91   if (!sqlgetarray(sql_cmd, sql_results) || sql_results.size() == 0) 
     90  if (sqlitefile == NULL || !sqlgetarray(sql_cmd, sql_results) || sql_results.size() == 0) 
    9291  { 
    9392    return false; 
    9493  } 
    95  
    96   outconvertclass text_t2ascii; 
    9794 
    9895  text_tmap sql_result = sql_results[0]; 
    9996  text_t sql_result_value = sql_result["value"]; 
    100   (*logout) << text_t2ascii << "Result: " << sql_result_value << "\n"; 
    101  
    10297  text_t::iterator sql_result_value_iterator = sql_result_value.begin(); 
    10398  text_t ikey, ivalue;