[sqlite] Checkin 5d9a369301 Cannot Link - sqlite3Fts3Corrupt undefined without SQLITE_DEBUG

2019-11-25 Thread Keith Medcalf
fts3_write.c line 1241 calls sqlite3Fts3Corrupt but function is only defined if SQLITE_DEBUG is defined when fts3.c is compiled. -- The fact that there's a Highway to Hell but only a Stairway to Heaven says a lot about anticipated traffic volume.

[sqlite] SQLite 2019-11-25 04:15:33 says 0 errors out of 250197 tests

2019-11-25 Thread Dennis Clarke
I felt it was time to change the subject line to something more useful. Also everything works flawlessly here on Red Hat Enterprise Linux 7.4 : . . . SQLite 2019-11-25 04:15:33 b0b655625cf491c832a259d29a67660b8d5943c201617900a83d0660b2673377 0 errors out of 250197 tests on boe13.genunix.com

Re: [sqlite] wrong timestamp using strftime('%s')

2019-11-25 Thread Keith Medcalf
The result of datetime(0, 'unixepoch') is '1970-01-01 00:00:00'. This is what does not have milliseconds (the output). It is a text string in the format -MM-DD HH:MM:SS. Similarly datetime(0.123, 'unixepoch') is also '1970-01-01 00:00:00'. The result of datetime(0) is, of course,

Re: [sqlite] Multiple Unique column missing in System.Data.DataTable.Constraints after Schema Filling

2019-11-25 Thread Simon Slavin
On 25 Nov 2019, at 11:02am, Jaroslav Homisin wrote: > I have expected a list of the two constraints: of Primary key and of Unique. > But I can find only Primary Key Constraint. Where are you getting your list of constraints from ? SQLite version 3.28.0 2019-04-15 14:49:49 Enter ".help" for

Re: [sqlite] LIKE IN

2019-11-25 Thread Gert Van Assche
Thanks for clarifying this, David. Learned something new today! On Mon, 25 Nov 2019 at 15:25, David Raymond wrote: > There'll be a few differences. > > The JOIN version will return 1 row for every item in queries which > matches, and it will test every single one every time. So if you have in >

Re: [sqlite] wrong timestamp using strftime('%s')

2019-11-25 Thread Dominik Ohnezeit
the type of CreationDate is integer. The CreationDate is inserted with strftime('%s', '1970-01-01 00:00:00.000') need to check which value is written to the database. I also tried without milliseconds - same result. -Ursprüngliche Nachricht- Von: sqlite-users

Re: [sqlite] [FireDAC][Phys][SQLite]-326. Cannot perform the action, because the previous action is in progress.

2019-11-25 Thread Radovan Antloga
This is FireDAC error message not SQLite specific. I cannot reproduce it when using default FireDAC settings. But I think you must check Database ResourceOptions CmdExecMode. Change to am_NonBlocking. But I do not have to change that by default. Regards Radovan On 25.11.2019 18:34, Edson

[sqlite] [FireDAC][Phys][SQLite]-326. Cannot perform the action, because the previous action is in progress.

2019-11-25 Thread Edson Polonio
Hi everyone! I am using SQLite, with Delphi XE Rio and Firedac and I don't know why, a cited error message appeared. I've tried everything to unlock the database: I renamed the .db file, changed the folder file, turned off the notebook, etc., but I can't unlock the .db database. The error

[sqlite] Multiple Unique column missing in System.Data.DataTable.Constraints after Schema Filling

2019-11-25 Thread Jaroslav Homisin
Dear SQLite support, Develop informations:     Windows 7 64bit Visual StudioProfessional 2015 (Version 14.0.25431.01 Update 3);  .NET Build Platform 4.5.1 System.Data.SQLite.dll used from Installation  sqlite-netFx451-setup-bundle-x64-2013-1.0.112.0.exe  

Re: [sqlite] wrong timestamp using strftime('%s')

2019-11-25 Thread Keith Medcalf
-- The fact that there's a Highway to Hell but only a Stairway to Heaven says a lot about anticipated traffic volume. On Sunday, 24 November, 2019 13:21, Dominik Ohnezeit wrote: >I am trying to convert a date to timestamp, but after the conversion with >strftime('%s') the integer result

Re: [sqlite] [FireDAC][Phys][SQLite]-326. Cannot perform the action, because the previous action is in progress.

2019-11-25 Thread radovan5
This is FireDAC error message not SQLite specific. I cannot reproduce it when using default FireDAC settings. But I think you must check Database ResourceOptions CmdExecMode. Change to am_NonBlocking. But I do not have to change that by default. Regards Radovan On 25.11.2019 18:34, Edson

Re: [sqlite] What is the C language standard to which sqlite conforms ?

2019-11-25 Thread Dennis Clarke
It would be my pleasure to get some light tossed on this ... so here is a very clean compile ( no -std in CFLAGS at all on gcc 9.2.0 ) and the tests look like so : This is a test script error. Should now be fixed here: https://sqlite.org/src/info/b0b655625cf491c8 What version of Tcl are you

[sqlite] [FireDAC][Phys][SQLite]-326. Cannot perform the action, because the previous action is in progress.

2019-11-25 Thread Edson
Hi everyone! I am using SQLite, with Delphi XE Rio and Firedac and I don't know why, a cited error message appeared. I've tried everything to unlock the database: I renamed the .db file, changed the folder file, turned off the notebook, etc., but I can't unlock the .db database. The error

Re: [sqlite] 回复: stack-overflow issue in fts4 module

2019-11-25 Thread Richard Hipp
On 11/25/19, OBones wrote: > Maybe I'm completely wrong, but using t0 both as the name of the virtual > table and the source for its content seems to me like the perfect > condition to create a infinite recursion. You are exactly correct in diagnosing the problem. This is an attack that we

Re: [sqlite] 回复: stack-overflow issue in fts4 module

2019-11-25 Thread OBones
林性伟(林以) wrote: Hi, Sorry to make you inconvenient. poc, test.sql: CREATE VIRTUAL TABLE t0 USING fts4(content=t0,0); SELECT count() FROM t0(0); Maybe I'm completely wrong, but using t0 both as the name of the virtual table and the source for its content seems to me like the perfect condition

Re: [sqlite] Shell commands for controlling headers

2019-11-25 Thread David Raymond
Dr Hipp replied to this 2 days ago with this: Documentation fix https://www.sqlite.org/docsrc/info/a2762f031964e774 will appears in the next release. ".header" is an abbreviation for ".headers" and does exactly the same thing. -Original Message- From: sqlite-users On Behalf Of John

Re: [sqlite] Shell commands for controlling headers

2019-11-25 Thread John McKown
On Mon, Nov 25, 2019 at 8:42 AM Craig Maynard wrote: > All, > > Could someone clarify the difference between the two sqlite3 shell > commands .header and .headers? > > The relevant documentation page: https://www.sqlite.org/cli.html > > On the cli page, .header is discussed in section 5 but does

[sqlite] Shell commands for controlling headers

2019-11-25 Thread Craig Maynard
All, Could someone clarify the difference between the two sqlite3 shell commands .header and .headers? The relevant documentation page: https://www.sqlite.org/cli.html On the cli page, .header is discussed in section 5 but does not appear in Section 3. Thanks, Craig -- Craig H Maynard

Re: [sqlite] LIKE IN

2019-11-25 Thread David Raymond
There'll be a few differences. The JOIN version will return 1 row for every item in queries which matches, and it will test every single one every time. So if you have in the queries table both 'Alex' and 'Alexand' then 'Alexander' and 'Alexandra' will each show up twice, once for 'Alex' and

Re: [sqlite] wrong timestamp using strftime('%s')

2019-11-25 Thread Jose Isaias Cabrera
Dominik Ohnezeit, on Sunday, November 24, 2019 03:21 PM, wrote... > strftime('%s', '1970-01-01 00:00:00.000') [clip] > the date I get back is not 1970-01-01 00:00:00.000 but 1969-12-31 > 22:29:11.000 > > Does anyone know why? Here are some samples run... sqlite> select strftime('%s',

Re: [sqlite] wrong timestamp using strftime('%s')

2019-11-25 Thread Richard Hipp
On 11/24/19, Dominik Ohnezeit wrote: > > strftime('%s', '1970-01-01 00:00:00.000') Returns '0'. > > datetime(CreationDate, 'unixepoch') Assuming CreationDate is 0, this returns '1970-01-01 00:00:00'. > > Does anyone know why? > Dunno why you might be getting anything different. -- D.

[sqlite] wrong timestamp using strftime('%s')

2019-11-25 Thread Dominik Ohnezeit
Hello, I am trying to convert a date to timestamp, but after the conversion with strftime('%s') the integer result is wrong Example: I insert a integer timestamp into a integer table column named CreationDate with strftime('%s', '1970-01-01 00:00:00.000') After getting it from

[sqlite] edit() function should be disabled in batch mode

2019-11-25 Thread Liyu L
With recent versions of sqlite3 (not seen with OSX Mojave 10.14.6 stock SQLite version 3.16.2 or before), a convenient function edit() was introduced. However it is not disabled for batch mode where it is never intended. For batch mode it is preferable to keep backward compatible behavior to

Re: [sqlite] Concurrency Question

2019-11-25 Thread Dominique Devienne
On Sat, Nov 23, 2019 at 4:17 PM Dan Kennedy wrote: > > [...] Why is thread_B blocked when doing a read just because SQLite is > writing to another table? [...] > > Is this the expected behavior or am I doing something stupid in my code. > And if so, what to check? > > This should only happen if