Community: Wiki

你在这里: You Are Here: Olet tässä: Vous êtes ici: Sie befinden sich hier: Tu sei qui: 現在のページ: Você está aqui: Вы здесь: Usted está aquí:
 

Talk:Database Example

From Forum Nokia Wiki

Stomo73 11:12, 18 October 2007 (UTC)

// we have autoincrement in index so it should be unique
// but just to make sure, we use 'while', instead of 'if' while(Myview.AtRow())            

This is a bad habbit, I think. Use _ASSERT_DEBUG, if you're suspicious about the query result. But in your example, using 'while' suggests existing fatal error in the DBMS.

"TFileName QueryBuffer;" in DeleteFromDatabaseL().

Do you know any restriction on the length of the SQL statement? If not, do not use TFileName for that. Use TBuf<> if the statement is small (<256byte) or HBufC* if bigger.

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditFurlTechnocratiMagnoliaTwitter  Share this page Share this page Invite a friend Invite a friend
E-mail Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us Regional websites: Chinese Japanese © 2008 Nokia 
RDF Facets: qfnZtypeQUqfnTypeZCommunityContentQ qfnZtypeQUqfnTypeZWebpageQ qfnZtypeQUqfnTypeZWikiContentQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX