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 » Some questions around SQlite3
Re: Some questions around SQlite3 [message #28432 is a reply to message #28430] Wed, 01 September 2010 21:13 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
1. SQL is a macro, same as calling AppCursor() function. The relevant code:
#ifndef NOAPPSQL

struct AppSql : Sql {
	void   operator=(SqlSource& s) { Assign(s); }
	void   Detach()                { Sql::Detach(); }
	AppSql() : Sql(NULLSQL) {}
};

AppSql& AppCursor();
#define SQL AppCursor()
#endif

1.2 Use SqlBinary(foo)

2. You can use the field name in the first while loop. Fetching after the last record fetched returns false. Your second while loop will not run.

[Updated on: Wed, 01 September 2010 21:14]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Prefix to prevent name clash in SQL: SqlId, variables, tables, ...
Next Topic: SQlite3: my problem or bug?
Goto Forum:
  


Current Time: Fri May 10 08:10:04 CEST 2024

Total time taken to generate the page: 0.02831 seconds