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 » Lowercase field name in table - error
Lowercase field name in table - error [message #36739] Sat, 30 June 2012 00:51 Go to previous message
mezise is currently offline  mezise
Messages: 54
Registered: April 2006
Member
I try to use Upp with existing database where there are lowercase field names and I get "Assertion failed" error in NEVER() line:

C:\uppSVN5061\uppsrc\Sql\Sql.cpp, line 339

Value Sql::operator[](SqlId id) const {
	String s = ~id;
	for(int i = 0; i < cn->info.GetCount(); i++)
		if(cn->info[i].name == s)
			return operator[](i);
	NEVER(); // <---- here ----
	return Value();
}


To repeat error:
- revision: SVN 5061
- use package: reference/SQL_Sqlite3
- in simple.sch: change ID to id
- in simple.cpp: change all ID to id
- Execute
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What does this code do exactly?
Next Topic: Cannot connect to MySQL database
Goto Forum:
  


Current Time: Thu Apr 25 08:53:33 CEST 2024

Total time taken to generate the page: 0.02130 seconds