Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Codewarrior Symbian > Overflow error ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 99 of 155
Post > Topic >>

Overflow error in database?

by gauravj116@[EMAIL PROTECTED] (Gaurav) Sep 28, 2004 at 02:11 PM

hi,

I am executing an INSERT SQL statement on the database.
The execute function is leaving with System Error(-9). 
This is Overflow error. can anyone explain this error in database context.

Gaurav Jain

/// Code:

RDbs dbSession;
User::LeaveIfError( dbSession.Connect() );
CleanupClosePushL( dbSession );
RDbNamedDatabase database;
User::LeaveIfError( database.Open( dbSession, KDatabaseName) );
CleanupClosePushL( database );

_LIT(KSQLSelect, "INSERT INTO ");

TBuf<240>  SQLStatement;  // define KMaxSQLStatementLength 256
SQLStatement = KSQLSelect;
SQLStatement.Append( _L("Table1") );  // Append name
SQLStatement.Append(_L(" (field1, field2) VALUES ('"));
SQLStatement.Append(funcX());
SQLStatement.Append(_L("','"));
SQLStatement.Append(funcY());
SQLStatement.Append(_L("')"));
User::LeaveIfError(database.Execute(SQLStatement));

database.Close();
dbSession.Close();
CleanupStack::PopAndDestroy(); // database
CleanupStack::PopAndDestroy(); // dbSession




 1 Posts in Topic:
Overflow error in database?
gauravj116@[EMAIL PROTECT  2004-09-28 14:11:48 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 13:36:50 CDT 2008.