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 » Sqlite and DUAL_PRIMARY_KEY
Re: Sqlite and DUAL_PRIMARY_KEY [message #46417 is a reply to message #45841] Mon, 09 May 2016 12:34 Go to previous message
busiek is currently offline  busiek
Messages: 70
Registered: February 2011
Location: Poland
Member
However it works when you create tables. Here is my schema upgrading code:
	All_Tables(sch);
	if (sch.ScriptChanged(SqlSchema::SCHEMA))
		Sqlite3PerformScript(sch.Schema());
	if (sch.ScriptChanged(SqlSchema::UPGRADE))
		Sqlite3PerformScript(sch.Upgrade());
	if (sch.ScriptChanged(SqlSchema::ATTRIBUTES))
		Sqlite3PerformScript(sch.Attributes());
	if (sch.ScriptChanged(SqlSchema::CONFIG)) {
		Sqlite3PerformScript(sch.ConfigDrop());
		Sqlite3PerformScript(sch.Config());
	}

Unless you add a primary key on two columns in an existing table it works ok.
 
Read Message
Read Message
Read Message
Previous Topic: I am trying to have two sqls one to read another to write
Next Topic: Global SqlIds
Goto Forum:
  


Current Time: Thu Jun 26 22:52:48 CEST 2025

Total time taken to generate the page: 0.02774 seconds