Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ SQL » Strange exception raising with SQL.ExecuteX()
Strange exception raising with SQL.ExecuteX() [message #30104] Thu, 09 December 2010 10:54 Go to previous message
BioBytes is currently offline  BioBytes
Messages: 307
Registered: October 2008
Location: France
Senior Member
Hi all,

The following code, which compiles correctly, raises an exception while the updating operations are correctly implemented in my database tables:

void qsSKillFormDlg::RefreshInfosProcOwner(String newValue,String owner,int fieldId)
{
SqlId TBLOWN("OWNERS"),FIRSTNAME("OWNERFIRSTNAME"),FAMILYNAME( "OWNERNAME");
Vector<String> infos;

try
{
infos.Clear();
infos = Split(infosProcOwner.At(2),' ',false);

switch(fieldId)
{
case 0: infosProcOwner.At(2).Clear();
infosProcOwner.At(2)<<infos.At(0)<<' '<<newValue;
SQL.ExecuteX(" Update(TBLOWN)(FAMILYNAME,newValue).Where(FAMILYNAME==owner) ");

break;

case 1: SQL.ExecuteX("Update(TBLOWN)(FIRSTNAME,newValue).Where(FAMILYNAME==owner) ");
break;
}
}
catch(SqlExc& err)
{
PanicMessageBox(t_("Erreur SQL"),err);
}
}


I use MySql Server 5.0 and U++ 2884. Of course, if I replace ExecuteX and no longer implement the exception Try/Catch, no error is shown in runtime.

Perhaps I misuse the SqlId syntax or is there a bug?. Is anyone has an idea ?

Thanks for suggestions

Regards

Biobytes
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Missing ASSERT?
Next Topic: In Oracle9 and higher, TIMESTAMP data type will cause ORA-1402 exception w/ Oracle8 Oci8.cpp
Goto Forum:
  


Current Time: Sun May 05 10:49:39 CEST 2024

Total time taken to generate the page: 0.01710 seconds