is that it turned out that in MyISAM tables a unique index does not
guarantee uniqueness if a field in the index can have a NULL value.
git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@358 8eb893ce-cfd4-0310-b710-fb5ebe64c474
query_string="select audio from "+string(DEFAULT_AUDIO_TABLE)+" where application='"+APP_NAME+"' and message='"+message+"' and language is null";
query_string="select audio from "+string(DEFAULT_AUDIO_TABLE)+" where application='"+APP_NAME+"' and message='"+message+"' and language=''";
}else{
*audio_file="/tmp/"+domain+"_"+APP_NAME+"_"+
message+".wav";
query_string="select audio from "+string(DOMAIN_AUDIO_TABLE)+" where application='"+APP_NAME+"' and message='"+message+"' and domain='"+domain+"' and language is null";
query_string="select audio from "+string(DOMAIN_AUDIO_TABLE)+" where application='"+APP_NAME+"' and message='"+message+"' and domain='"+domain+"' and language=''";
query_string="select audio from "+string(DEFAULT_AUDIO_TABLE)+" where application='"+MOD_NAME+"' and message='"+message+"' and language is null";
query_string="select audio from "+string(DEFAULT_AUDIO_TABLE)+" where application='"+MOD_NAME+"' and message='"+message+"' and language=''";
}else{
*audio_file=string("/tmp/")+domain+"_"+MOD_NAME+
"_"+message+".wav";
query_string="select audio from "+string(DOMAIN_AUDIO_TABLE)+" where application='"+MOD_NAME+"' and message='"+message+"' and domain='"+domain+"' and language is null";
query_string="select audio from "+string(DOMAIN_AUDIO_TABLE)+" where application='"+MOD_NAME+"' and message='"+message+"' and domain='"+domain+"' and language=''";
}
}else{
if(domain.empty()){
@ -175,7 +175,7 @@ int AnswerMachineFactory::loadEmailTemplatesFromMySQL()
unsignedlonglength=row["template"].size();
stringtmp_file,tmpl_name;
row=res.at(i);
if(string(row["language"])=="NULL"){
if(string(row["language"])==""){
tmp_file="/tmp/voicemail_email.template";
tmpl_name=DEFAULT_MAIL_TMPL;
}else{
@ -217,7 +217,7 @@ int AnswerMachineFactory::loadEmailTemplatesFromMySQL()