Home » Community » U++ community news and announcements » 2024rc2
Re: 2024rc2 [message #61065 is a reply to message #61064] |
Tue, 05 November 2024 09:56  |
 |
mirek
Messages: 14261 Registered: November 2005
|
Ultimate Member |
|
|
Oblivion wrote on Tue, 05 November 2024 09:32There 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
|
|
|
 |
|
2024rc2
By: mirek on Sat, 02 November 2024 11:03
|
 |
|
Re: 2024rc2
|
 |
|
Re: 2024rc2
|
 |
|
Re: 2024rc2
By: emve on Wed, 27 November 2024 09:48
|
 |
|
Re: 2024rc2
By: mirek on Wed, 27 November 2024 09:55
|
 |
|
Re: 2024rc2
By: emve on Wed, 27 November 2024 10:51
|
 |
|
Re: 2024rc2
By: mirek on Wed, 27 November 2024 10:55
|
 |
|
Re: 2024rc2
By: mirek on Fri, 29 November 2024 16:07
|
 |
|
Re: 2024rc2
By: emve on Fri, 29 November 2024 18:15
|
 |
|
Re: 2024rc2
By: Tom1 on Sun, 03 November 2024 12:12
|
 |
|
Re: 2024rc2
|
 |
|
Re: 2024rc2
By: mirek on Tue, 05 November 2024 09:59
|
 |
|
Re: 2024rc2
|
 |
|
Re: 2024rc2
By: Klugier on Tue, 05 November 2024 20:01
|
 |
|
Re: 2024rc2
|
 |
|
Re: 2024rc2
By: mirek on Tue, 05 November 2024 23:05
|
 |
|
Re: 2024rc2
|
 |
|
Re: 2024rc2
By: Lance on Thu, 07 November 2024 01:05
|
 |
|
Re: 2024rc2
By: mirek on Thu, 07 November 2024 10:40
|
 |
|
Re: 2024rc2
By: Lance on Thu, 07 November 2024 20:39
|
 |
|
Re: 2024rc2
By: mirek on Tue, 05 November 2024 20:19
|
 |
|
Re: 2024rc2
By: Oblivion on Tue, 05 November 2024 09:32
|
 |
|
Re: 2024rc2
By: mirek on Tue, 05 November 2024 09:56
|
Goto Forum:
Current Time: Sat Jun 07 21:49:05 CEST 2025
Total time taken to generate the page: 0.14420 seconds
|