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 » Community » U++ community news and announcements » 2024rc2
Re: 2024rc2 [message #61065 is a reply to message #61064] Tue, 05 November 2024 09:56 Go to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Oblivion wrote on Tue, 05 November 2024 09:32
There is also another problem I've noticed:

SQLite doesn't seem to work in release mode (in Windows). Examples, such as SQL_SQLite, fail to create tables with the following log:

* C:\Users\user2\Desktop\upp\out\reference\CLANGx64.Blitz\SQL_Sqlite3.exe 04.11.2024 16:38:05, user: user2

ERROR no such table: SIMPLE_TEST1(1): Preparing: insert into SIMPLE_TEST1(ID, NAME, LASTNAME, BDATE) values (0, 'Joe', 'Smith', 20000101)
ERROR no such table: SIMPLE_TEST1(1): Preparing: insert into SIMPLE_TEST1(ID, NAME, LASTNAME, BDATE) values (1, 'Mike', 'Smith', 20000102)
ERROR no such table: SIMPLE_TEST1(1): Preparing: insert into SIMPLE_TEST1(ID, NAME, LASTNAME, BDATE) values (2, 'Jon', 'Goober', 20000103)
ERROR no such table: SIMPLE_TEST1(1): Preparing: delete from SIMPLE_TEST1 where ID > 3
ERROR no such table: SIMPLE_TEST1(1): Preparing: insert into SIMPLE_TEST1(ID, NAME, LASTNAME, BDATE) values (5, 'wrongname', 'wronglastname', 20010604)
ERROR no such table: SIMPLE_TEST1(1): Preparing: update SIMPLE_TEST1 set NAME = 'rightname', LASTNAME = 'rightlastname', BDATE = 20010604 where ID = 5
ERROR no such table: SIMPLE_TEST1(1): Preparing: insert into SIMPLE_TEST1(name,bdate) values(?,?)
ERROR no such table: SIMPLE_TEST1(1): Preparing: insert into SIMPLE_TEST1(name,bdate) values(?,?)
ERROR no such table: SIMPLE_TEST1(1): Preparing: insert into SIMPLE_TEST1(name,bdate) values(?,?)
ERROR no such table: SIMPLE_TEST1(1): Preparing: insert into SIMPLE_TEST1(name,bdate) values(?,?)
ERROR no such table: SIMPLE_TEST1(1): Preparing: select ID, NAME, LASTNAME, BDATE from SIMPLE_TEST1
ERROR no such table: SIMPLE_TEST1(1): Preparing: select * from SIMPLE_TEST1


Am I missing something here, this shouldn't be happening in release mode, right? The examples work fine (read: can succesfully create and query tables) in debug mode.


Best regards,
Oblivion


Uhm, it is intentional, although for sqlite3 example maybe a bit misplaced. If you check the example, schema code is in #ifdef _DEBUG blocks...

The explanation is that in production (that is "release mode"), you really do no want to run schema updates in your application. So traditionally, we were using schema updates just for development, then pick generated scripts in debug mode and use them to prepare upgrade packages (actually, these were debian packages) for production environment.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: 2024rc5
Next Topic: U++ 2024
Goto Forum:
  


Current Time: Sat Jun 07 21:49:05 CEST 2025

Total time taken to generate the page: 0.14420 seconds