c++/EEDB/Symbol.cpp
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// DBObject override methods : storage methods
//
//////////////////////////////////////////////////////////////////////////////////////////////////
DBObject override methods : storage methods
DBObject override methods : storage methods
bool EEDB::Symbol::check_exists_db(MQDB::Database *db) {
  if(db==NULL) { return false; }
  dynadata value = db->fetch_col_value("SELECT symbol_id FROM symbol where sym_type=? and sym_value=?", "ss", 
                                       _type.c_str(), _data.c_str());
  if(value.type != MQDB::INT) { return false; }
  _primary_db_id = value.i_int;
  database(db);
  return true;
}
bool EEDB :: Symbol :: check_exists_db ( MQDB :: Database * db ) { if ( db == NULL ) { return false ; } dynadata value = db -> fetch_col_value ( " " , " " , _type . c_str ( ) , _data . c_str ( ) ) ; if ( value . type != MQDB :: INT ) { return false ; } _primary_db_id = value . i_int ; database ( db ) ; return true ; }
DBObject override methods : storage methods
DBObject override methods : storage methods