Zeos 7.3 testers-thread
Re: Zeos 7.3 testers-thread
There is something wrong with Date in SQlite.
What I get in Zeos 7.3 r6490 Delphi 10.3.3-Win32 SQlite 3.31.0.
Michal
What I get in Zeos 7.3 r6490 Delphi 10.3.3-Win32 SQlite 3.31.0.
Michal
You do not have the required permissions to view the files attached to this post.
Re: Zeos 7.3 testers-thread
I thought DateTime is unsupported in SQLite...?
https://www.sqlite.org/datatype3.html
https://www.sqlite.org/datatype3.html
P.s.: this is why I use Unix timestamps and just convert it within the application.2.2. Date and Time Datatype
SQLite does not have a storage class set aside for storing dates and/or times. Instead, the built-in Date And Time Functions of SQLite are capable of storing dates and times as TEXT, REAL, or INTEGER values:
TEXT as ISO8601 strings ("YYYY-MM-DD HH:MM:SS.SSS").
REAL as Julian day numbers, the number of days since noon in Greenwich on November 24, 4714 B.C. according to the proleptic Gregorian calendar.
INTEGER as Unix Time, the number of seconds since 1970-01-01 00:00:00 UTC.
Applications can chose to store dates and times in any of these formats and freely convert between formats using the built-in date and time functions.
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Re: Zeos 7.3 testers-thread
Ok, it is possable, but why does the same sqlite (3310100) work correct with zeos 7.3 version 5939?
Best regards,
Theo
Best regards,
Theo
Re: Zeos 7.3 testers-thread
SQLite Expert allows you to enter Date:
Michal
Michal
You do not have the required permissions to view the files attached to this post.
Re: Zeos 7.3 testers-thread
I think that problems may arise from conflicts between the different standards used to present the Date(and their various settings in operating systems).
Michal
Michal
Re: Zeos 7.3 testers-thread
Hi Michal,
I tried several builds of zeos 7.3 and I can reproduce that all versions before and including build 5939 work exelent and have no problems with the dates in sqlite db. After build 5939 something is changed and problems arise. In my tests I use always the same applications, the same sqlite version and the same lazarus. I tried at different workstations, so in my opinion there is something changed in zeos whiche caused the problem.
Best regards,
Theo
I tried several builds of zeos 7.3 and I can reproduce that all versions before and including build 5939 work exelent and have no problems with the dates in sqlite db. After build 5939 something is changed and problems arise. In my tests I use always the same applications, the same sqlite version and the same lazarus. I tried at different workstations, so in my opinion there is something changed in zeos whiche caused the problem.
Best regards,
Theo
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Zeos 7.3 testers-thread
Hello Theo - what should I say? If you want an embedded database that works correctly I can only advise against using sqlite and suggest Firebird. While sqlite explicitly isn't type safe, Firebird is. Declaring a date column will get you a date column in Zeos - always. Sqlite - by design - requires Zeos to do guesswork.
For finding the root of the probem: I did have a look at the changes after rev. 5939. Rev. 5940 has no changes concerning sqlite. So this revision also should work?
I think at this stage we really need an example application that demonstrates the problem. This doesn't need to be a complete project. But a table definition, example data and a pascal procedure that shows the problem would help.
If you want to upload an existing application somewhere, I could provide space for that and send you information regarding that as a private message.
Best regards,
Jan
Re: Zeos 7.3 testers-thread
Hello Jan,
Link to the example download:
https://www.dropbox.com/t/o36BS883vZQbdkb4
Best regards,
Theo
Link to the example download:
https://www.dropbox.com/t/o36BS883vZQbdkb4
Best regards,
Theo
Re: Zeos 7.3 testers-thread
Hello Jan,
I think that I found a solution. I Use SQLite expert to define the tables. I used the the Date datatype in SQLite expert with the setting 'Store DateTime values' as Numeric. Now I changed that type to Text and voilá everything works. It seems that the latest zeos 7.3 could not handle the numeric date types anymore.
Best Regards,
Theo
I think that I found a solution. I Use SQLite expert to define the tables. I used the the Date datatype in SQLite expert with the setting 'Store DateTime values' as Numeric. Now I changed that type to Text and voilá everything works. It seems that the latest zeos 7.3 could not handle the numeric date types anymore.
Best Regards,
Theo
Re: Zeos 7.3 testers-thread
@EgonHugeist, @Jan, @Fr0sT, @mdaems, All
ZEOS 7.3.x svn 6491:
https://sourceforge.net/p/zeoslib/code- ... sting-7.3/
Compiles:
- Lazarus 2.0.0(fpc 3.3.1) - Raspbian32 Buster for Raspberry Pi https://www.getlazarus.org/setup/?download#raspberry_pi,
- Lazarus 2.0.8(fpc 3.0.4)-Win32,
- Lazarus 2.0.8(fpc 3.0.4)-Win64,
- Delphi 7,
- RAD Studio 2007-Win32/C++32 with small hpp fixes,
- RAD Studio XE2 -Win32/Win64/C++32 with small hpp fixes,
- Delphi 10 Seattle-Win32/Win64,
- Delphi 10.3.3 Rio-Win32/Win64/Android/Android64.
mORMot PerfTest r5960 passes(Delphi 10.3.3 Rio Win32/Win64; Delphi 2007)
Michal
ZEOS 7.3.x svn 6491:
https://sourceforge.net/p/zeoslib/code- ... sting-7.3/
Compiles:
- Lazarus 2.0.0(fpc 3.3.1) - Raspbian32 Buster for Raspberry Pi https://www.getlazarus.org/setup/?download#raspberry_pi,
- Lazarus 2.0.8(fpc 3.0.4)-Win32,
- Lazarus 2.0.8(fpc 3.0.4)-Win64,
- Delphi 7,
- RAD Studio 2007-Win32/C++32 with small hpp fixes,
- RAD Studio XE2 -Win32/Win64/C++32 with small hpp fixes,
- Delphi 10 Seattle-Win32/Win64,
- Delphi 10.3.3 Rio-Win32/Win64/Android/Android64.
mORMot PerfTest r5960 passes(Delphi 10.3.3 Rio Win32/Win64; Delphi 2007)
Michal
Re: Zeos 7.3 testers-thread
Hello Michal and Jan,
I tested the last revision 6495 and all date problems with SQLite are gone. Everything works like charm now.
Best Regards,
Theo
I tested the last revision 6495 and all date problems with SQLite are gone. Everything works like charm now.
Best Regards,
Theo
Re: Zeos 7.3 testers-thread
@EgonHugeist, @Jan, @Fr0sT, @mdaems, All
ZEOS 7.3.x svn 6495:
https://sourceforge.net/p/zeoslib/code- ... sting-7.3/
Compiles:
- Lazarus 2.0.0(fpc 3.3.1) - Raspbian32 Buster for Raspberry Pi https://www.getlazarus.org/setup/?download#raspberry_pi,
- Lazarus 2.0.8(fpc 3.0.4)-Win32,
- Lazarus 2.0.8(fpc 3.0.4)-Win64,
- Delphi 7,
- RAD Studio 2007-Win32/C++32 with small hpp fixes,
- RAD Studio XE2 -Win32/Win64/C++32 with small hpp fixes,
- Delphi 10 Seattle-Win32/Win64,
- Delphi 10.3.3 Rio-Win32/Win64/Android/Android64.
my mORMot PerfTest r5960 passes(Delphi 10.3.3 Rio Win32/Win64; Delphi 2007)
Michal
ZEOS 7.3.x svn 6495:
https://sourceforge.net/p/zeoslib/code- ... sting-7.3/
Compiles:
- Lazarus 2.0.0(fpc 3.3.1) - Raspbian32 Buster for Raspberry Pi https://www.getlazarus.org/setup/?download#raspberry_pi,
- Lazarus 2.0.8(fpc 3.0.4)-Win32,
- Lazarus 2.0.8(fpc 3.0.4)-Win64,
- Delphi 7,
- RAD Studio 2007-Win32/C++32 with small hpp fixes,
- RAD Studio XE2 -Win32/Win64/C++32 with small hpp fixes,
- Delphi 10 Seattle-Win32/Win64,
- Delphi 10.3.3 Rio-Win32/Win64/Android/Android64.
my mORMot PerfTest r5960 passes(Delphi 10.3.3 Rio Win32/Win64; Delphi 2007)
Michal
Re: Zeos 7.3 testers-thread
Make sure that you delete the branch from GitHub too - it's still visible to me. https://www.wikihow.com/Delete-a-GitHub-Branchmarsupilami wrote: ↑01.05.2020, 09:57As aehimself said - this version was very old. It was part of a test to see how we can integrate users that use git. I deleted that branch now.
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Zeos 7.3 testers-thread
Unfortunately - yes - it is still visible. svn-all-fast-export didn't delete it. I am not sure if svn-all-fast-export will continue to work correctly if do changes on the local git repository. What happens if I delete the branch from the github repo but not from the local one? I assume it should not be a problem?aehimself wrote: ↑06.05.2020, 17:30Make sure that you delete the branch from GitHub too - it's still visible to me. https://www.wikihow.com/Delete-a-GitHub-Branchmarsupilami wrote: ↑01.05.2020, 09:57As aehimself said - this version was very old. It was part of a test to see how we can integrate users that use git. I deleted that branch now.
Honestly time is short for me currently. So I try to not do anything that might break the currently working process. I might not have the time to fix things if it breaks now.
Re: Zeos 7.3 testers-thread
I guess if you delete it from GitHub only and try to push, it will either fail or recreate the remote branch; not sure. The real question is how branches are created when exporting via svn-all-fast-export...? Even if you delete your local branch, it might recreate it again just to return to the original state.marsupilami wrote: ↑07.05.2020, 09:45Unfortunately - yes - it is still visible. svn-all-fast-export didn't delete it. I am not sure if svn-all-fast-export will continue to work correctly if do changes on the local git repository. What happens if I delete the branch from the github repo but not from the local one? I assume it should not be a problem?
Honestly time is short for me currently. So I try to not do anything that might break the currently working process. I might not have the time to fix things if it breaks now.
Anyhow; I don't mind my name being present on the unofficial repository ^^
Delphi 12.2, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47
Using:
- MySQL server 8.0.18; libmysql.dll 8.0.40 x64 5.7.19 x68, libmariadb.dll 3.3.11
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.15
- MSSQL 2012, 2019; sybdb.dll FreeTDS_3102
- SQLite 3.47