Re: [sqlite] [EXTERNAL] Intersect and Minus

2019-04-15 Thread Hick Gunter
It would be easier if you were to provide your schema, the text of the query and the error message. -Ursprüngliche Nachricht- Von: sqlite-users [mailto:sqlite-users-boun...@mailinglists.sqlite.org] Im Auftrag von Mohit Mathur Gesendet: Montag, 15. April 2019 21:31 An: sqlite-users@mailin

Re: [sqlite] Intersect and Minus

2019-04-15 Thread Keith Medcalf
On Monday, 15 April, 2019 13:31, Mohit Mathur wrote: >I am working on one sqllite query, in which i am doing left outer >join between two tables and than using intersect and again doing >left outer join between two other tablescolumns that i am >selecting are exactly same in number and dat

Re: [sqlite] Intersect and Minus

2019-04-15 Thread Simon Slavin
On 15 Apr 2019, at 8:31pm, Mohit Mathur wrote: > Please let me know why it is throwing error. What error ? Do you have an error number or text ? If you perform the same SELECT in the SQLite command line tool do you get the same error ? ___ sqlite-us

[sqlite] Documentation correction

2019-04-15 Thread tom-sqlite
Hi, I just wanted to point out a minor discrepancy in the docs below. https://www.sqlite.org/lang_createtable.html#rowid where it says: If a table contains a user defined column named "rowid", "oid" or "_rowid_", then that name always refers the explicitly declared column and cannot be used to

[sqlite] Intersect and Minus

2019-04-15 Thread Mohit Mathur
Hi tech gurus, I am working on one sqllite query, in which i am doing left outer join between two tables and than using intersect and again doing left outer join between two other tablescolumns that i am selecting are exactly same in number and datatypes.Please let me know why it is throwing e

Re: [sqlite] Help with loading .DAT files

2019-04-15 Thread Stephen Chrzanowski
.DAT files can be anything. If you can just use sqlite3.exe to open the .DAT and do proper queries on it (IE: sqlite3.exe yourfile.dat), then it's a proper SQLite3 database, so then you SHOULD be able to use the Attach command. Otherwise, you need to change the .DAT contents to something else tha

Re: [sqlite] Help with loading .DAT files

2019-04-15 Thread Simon Slavin
On 15 Apr 2019, at 4:48pm, Pablo Boswell (US - ASR) wrote: > I cannot get the following commands > to load anything reasonable (the engine always decides to load the data as > a single TEXT column with a column name of "sqlite3 data"): Please copy-and-paste the first line, and another line from

Re: [sqlite] Reporting two more interesting queries with performance regression

2019-04-15 Thread Jinho Jung
Hello, We are also trying to automatically narrow down the root cause of the performance regression by using traditional statistical debugging technique. (e.g., http://people.cs.uchicago.edu/~shanlu/preprint/oopsla161-song.pdf) From the process, statistical debugger returns file/function name whi

[sqlite] Help with loading .DAT files

2019-04-15 Thread Pablo Boswell (US - ASR)
I am trying to use Command Line Interface (CLI) sqlite3.exe to import .DAT files to an in-memory SQLite database. I cannot get the following commands to load anything reasonable (the engine always decides to load the data as a single TEXT column with a column name of "sqlite3 data"): - .ATTACH -

Re: [sqlite] Help with sqlite3_value_text

2019-04-15 Thread Simon Slavin
I don't know about any of this, but it seems that someone needs to write a 'Unicode' (or 'Multibyte charaacters') page for the SQLite documentation. Simon. ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org

Re: [sqlite] Help with sqlite3_value_text

2019-04-15 Thread Keith Medcalf
sqlite3_value_text and sqlite3_value_bytes will cause the conversion (if required) to UTF-8, and then return the data requested. sqlite3_value_text16 and sqlite3_value_bytes16 will cause the conversion (if required) to UTF-16 and then return the data requested. So if you call sqlite3_value_text

Re: [sqlite] Json paths

2019-04-15 Thread Charles Leifer
I still think that, in spite of the absence of a clear standard, sqlite could benefit from more sophisticated path support. Sqlite's json functions seem modeled after the MySQL json functions. Since MySQL supports some nice features (wildcard, prefix/suffix match), it does seem reasonable that sql

Re: [sqlite] Help with sqlite3_value_text

2019-04-15 Thread Clemens Ladisch
x wrote: >> As long as you use _value_bytes after _text you're fine... so if any >> conversion did take place the value will be right of the last returned >> string type. > > Could you explain that to me? I’m not sure why any conversion takes place > and, on reading the text below, I would’ve thoug

Re: [sqlite] Database corruption check.

2019-04-15 Thread Richard Hipp
On 4/15/19, Tim Streater wrote: >> >> This command was added to the command-line tool recently. > > 3.19.3 has it - that's almost two years ago. > The .selftest command was added on 2017-03-09 by https://www.sqlite.org/src/timeline?c=f4fcd46f08ba59d2 and hence as likely first in release 3.18.0 on

Re: [sqlite] Database corruption check.

2019-04-15 Thread Tim Streater
On 15 Apr 2019, at 11:02, Simon Slavin wrote: > On 15 Apr 2019, at 10:36am, Lullaby Dayal wrote: > >> Thank you very much for your response. The link seems to be helpful. But I >> fail to run the .selftest command from my sqlite3 prompt. I got the error: >> unknown command or invalid arguments e

Re: [sqlite] Help with sqlite3_value_text

2019-04-15 Thread x
>As long as you use _value_bytes after _text you're fine... so if any >conversion did take place the value will be right of the last returned >string type. JD, Could you explain that to me? I’m not sure why any conversion takes place and, on reading the text below, I would’ve thought it would be

Re: [sqlite] Database corruption check.

2019-04-15 Thread Dominique Devienne
On Mon, Apr 15, 2019 at 11:37 AM Lullaby Dayal wrote: > [...]. But I fail to run the .selftest command from my sqlite3 prompt. I > got the error: > unknown command or invalid arguments error. > That code dates back to July 2017. So you must have a very old version. > I am a newbie in SQLite. I

Re: [sqlite] Database corruption check.

2019-04-15 Thread Simon Slavin
On 15 Apr 2019, at 10:36am, Lullaby Dayal wrote: > Thank you very much for your response. The link seems to be helpful. But I > fail to run the .selftest command from my sqlite3 prompt. I got the error: > unknown command or invalid arguments error. This command was added to the command-line tool

Re: [sqlite] Json paths

2019-04-15 Thread Dominique Devienne
On Mon, Apr 15, 2019 at 6:34 AM Charles Leifer wrote: > I was wondering if there were any plans to support wildcard paths? > The main issue here IMHO is that there's no official standard, AFAIK. > Postgres v12 release looks like it has a pretty sophisticated jsonpath > type. SQLite does ofte

Re: [sqlite] Database corruption check.

2019-04-15 Thread Lullaby Dayal
Hi Richard, Thank you very much for your response. The link seems to be helpful. But I fail to run the .selftest command from my sqlite3 prompt. I got the error: unknown command or invalid arguments error. I am a newbie in SQLite. I am not sure how can I get this to working in our application run

Re: [sqlite] SQLite v3.27.2 memory usage

2019-04-15 Thread Warren Young
On Apr 14, 2019, at 10:18 PM, David Ashman - Zone 7 Engineering, LLC wrote: > > It appears that there is a leak somewhere. It is certainly in your code. My bet’s on a missing sqlite3_finalize() call, but there are many other possibilities. > Does anyone know why this error occurs? I suggest