[sqlite] How to read data from mem?

2016-03-16 Thread Sairam Gaddam
I want to read the mem when the program is inside the sqlite3VdbeExec() function and in case OP_Insert. Here the mem consists of entire row to be inserted. When I read the mem *pData, I found from the member pData->flags that it contains a BLOB. But when I tried to print BLOB in pData->z, I

[sqlite] How to read data from mem?

2016-03-16 Thread Cezary H. Noweta
Hello, On 2016-03-16 07:03, Sairam Gaddam wrote: > Here the mem consists of entire row to be inserted. Format of this data is described here: http://sqlite.org/fileformat2.html#serialtype > When I read the mem > *pData, I found from the member pData->flags that it contains a BLOB. But > when

[sqlite] CAST STRING => INTEGER

2016-03-16 Thread Scott Robison
On Mar 15, 2016 7:33 PM, "Keith Medcalf" wrote: > > > On Tuesday, 15 March, 2016 07:46, James K Lowden wrote > > To my way of thinking, SQLite's handling of giant integers per se > > is an edge case. Because such huge numbers don't normally arise, the > > non-error path (inputs in bounds) almost

[sqlite] CAST STRING => INTEGER

2016-03-16 Thread Cezary H. Noweta
Hello, I have prepared two minor corrections for the following 2 problems. It looks they are working fine: > ++--++ > |VALUE |col_num |CAST(col_num AS NUMERIC)| >

[sqlite] .import command/NULL values

2016-03-16 Thread Bernard McNeill
I couldn't find this issue documented anywhere. If it is required to import NULL values into an Sqlite table field, can this be done simply by arranging that the before and after delimiters for that field are consecutive? Example: For a three field table (all three fields text type), importing

[sqlite] CAST STRING => INTEGER

2016-03-16 Thread Cezary H. Noweta
Hello, > The $64 bit question ;) is how much existing code might break if such > changes were made. One can argue that the existing implementation is > broken, but a lot of software has been written to use it as it is. What > happens to them if such an improvement is made? A nuclear launch? ;)

[sqlite] .import command/NULL values

2016-03-16 Thread Simon Slavin
On 16 Mar 2016, at 8:43am, Bernard McNeill wrote: > If it is required to import NULL values into an Sqlite table field, can > this be done simply by arranging that the before and after delimiters for > that field are consecutive? No. Use one of these two methods. CREATE TABLE t(a,b,c) It is

[sqlite] .import command/NULL values

2016-03-16 Thread Clemens Ladisch
Bernard McNeill wrote: > If it is required to import NULL values into an Sqlite table field, can > this be done No; the .import commands imports everything as text. (This can result in numbers in columns that have numeric affinity.) To get NULL values, UPDATE the table afterwards. Regards,

[sqlite] .import command/NULL values

2016-03-16 Thread Simon Slavin
On 16 Mar 2016, at 9:02am, Simon Slavin wrote: > No. Use one of these two methods. I'm sorry. I read your 'import' but I thought you meant using INSERT. If you are using the shell's ".import" command then Clemens is right. You are importing from a text file, and there is no way to put a

[sqlite] .import command/NULL values

2016-03-16 Thread Bernard McNeill
Any particular reason why the shell '.import' command cannot interpret || as a NULL for the field? Does || have another use/interpretation? Just seems a shame that the standard bulk input mechanism cannot cope directly with NULLs. Best regards On Wed, Mar 16, 2016 at 9:13 AM, Simon Slavin

[sqlite] .import command/NULL values

2016-03-16 Thread Clemens Ladisch
Bernard McNeill wrote: > Any particular reason why the shell '.import' command cannot interpret || > as a NULL for the field? > Does || have another use/interpretation? Everything is a string. The data between the two separators is an empty string. Regards, Clemens

[sqlite] .import command/NULL values

2016-03-16 Thread R Smith
On 2016/03/16 11:53 AM, Bernard McNeill wrote: > Any particular reason why the shell '.import' command cannot interpret || > as a NULL for the field? The reason the import mechanism doesn't cope with NULLs is not because it can't, but because it shouldn't - until the TEXT standard changes in

[sqlite] SQLite Pronunciation

2016-03-16 Thread da...@dandymadeproductions.com
Hello, Please grant me some leeway here since as someone who has not been in an academic school for years and is mainly self taught. I have Mainly deriving information from reading manuals and occasionally viewing some videos. Maybe I'm wrong, but according to Wikepedia SQLite appears to be

[sqlite] SQLite Pronunciation

2016-03-16 Thread J Decker
more like sequel-ite On Wed, Mar 16, 2016 at 11:38 AM, wrote: > Hello, > > Please grant me some leeway here since as someone who has > not been in an academic school for years and is mainly self > taught. I have Mainly deriving information from reading > manuals and occasionally viewing some

[sqlite] SQLite Pronunciation

2016-03-16 Thread Marc L. Allen
That sounds like someone that comes from the land of Sequel. ;) I realize there *is* an official pronunciation, but I will probably forever pronounce it as S-Q-L-light, regardless of what it really is. :) -Original Message- From: sqlite-users-bounces at mailinglists.sqlite.org

[sqlite] SQLite Pronunciation

2016-03-16 Thread Jay Kreibich
IIRC, the SQL ISO standard defines the pronunciation of the term ?SQL? as "ess-cue-ell?, although if you trace SQL back to the IBM days of SEQUEL, there is a strong argument that the term ?sequel? makes more sense. I know when the SQLite development team speaks about it, they tend to use the

[sqlite] SQLite Pronunciation

2016-03-16 Thread Stephen Chrzanowski
Standards, official, or not, I've always pronounced it as Sequel. Ehm-Ess-Sequel, My-Sequel, Sequel-Lite, etc. IMO, S-Q-L is an acronym, as everyone knows, and since RADAR(1) is also an Acronym, why the fuss? To me, it falls off the tongue easier to say Sequel instead of Ess-Queue-Ell. 1-

[sqlite] SQLite Pronunciation

2016-03-16 Thread Marc L. Allen
I don't think anyone's making a fuss. I certainly wasn't and apologize if it appeared differently. -Original Message- From: sqlite-users-bounces at mailinglists.sqlite.org [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On Behalf Of Stephen Chrzanowski Sent: Wednesday, March

[sqlite] SQLite Pronunciation

2016-03-16 Thread Stephen Chrzanowski
No, not at all. Inside and outside this forum/list I've seen arguments about the proper pronunciation of different acronyms, and sometimes it has gotten pretty heated. I've got no problems with people asking the question, I just face palm when I see people take it to the next level of debate

[sqlite] SQLite Pronunciation

2016-03-16 Thread Daniel Telvock
I was at the Investigative Reporters and Editors Conference last week and the presenter for SQLite courses 1 and 3 said that it is actually pronounced SQ Lite. Even he thought that was odd considering SQL is a term or acronym. Dan Telvock Environment Reporter Investigative Post

[sqlite] SQLite Pronunciation

2016-03-16 Thread Richard Hipp
On 3/16/16, Daniel Telvock wrote: > I was at the Investigative Reporters and Editors Conference last week and > the presenter for SQLite courses 1 and 3 said that it is actually > pronounced SQ Lite. Even he thought that was odd considering SQL is a term > or acronym. I wrote SQLite, and I think

[sqlite] SQLite Pronunciation

2016-03-16 Thread Igor Korot
On Wed, Mar 16, 2016 at 3:53 PM, Richard Hipp wrote: > On 3/16/16, Daniel Telvock wrote: >> I was at the Investigative Reporters and Editors Conference last week and >> the presenter for SQLite courses 1 and 3 said that it is actually >> pronounced SQ Lite. Even he thought that was odd

[sqlite] SQLite Pronunciation

2016-03-16 Thread Adam Devita
Since Jay is The Certified SQLite Professional , ( https://www.mail-archive.com/sqlite-users at mailinglists.sqlite.org/msg04840.html ) and by fortunate co-incidence what he said (and DRH) happens to match what I was doing, I'll agree with them, and celebrate by making a potato salad with

[sqlite] Error msg help

2016-03-16 Thread Daniel Telvock
Anyone know what this is trying to tell me? I cannot import the CSV because of this error. Everything is labeled as VARCHAR and api_well_number is marked as the unique identifier. SQLiteManager: INSERT INTO "main"."WELLS" VALUES ("Adams, E.H. et al",'Schuyler','Hector','3.11E+13','Collins

[sqlite] SQLite Pronunciation

2016-03-16 Thread David Raymond
SQLite: Crystalline Sulfanyl Query-um Lithide -Original Message- From: sqlite-users-bounces at mailinglists.sqlite.org [mailto:sqlite-users-boun...@mailinglists.sqlite.org] On Behalf Of Richard Hipp Sent: Wednesday, March 16, 2016 3:54 PM To: SQLite mailing list Subject: Re: [sqlite]

[sqlite] Error msg help

2016-03-16 Thread Simon Slavin
On 16 Mar 2016, at 9:42pm, Daniel Telvock wrote: > SQLiteManager: INSERT INTO "main"."WELLS" VALUES ("Adams, E.H. et > al",'Schuyler','Hector','3.11E+13','Collins 1','UM','Unknown Not > Found','DW','Dry Wildcat','8') [ UNIQUE constraint failed: > WELLS.api_well_number ] The error part of that

[sqlite] SQLite Pronunciation

2016-03-16 Thread Keith Medcalf
> Like, look at my name... Come on... I'd be on death row if I got even a > TINY bit upset if someone mispronounced Stephen. {smirk} You mean it isn't pronounced Step Hen?

[sqlite] SQLite Pronunciation

2016-03-16 Thread Keith Medcalf
Someone needs a cup from the CoFe ClO or 2 4 (you need a fixed width font to see) > SQLite: Crystalline Sulfanyl Query-um Lithide > >