[sqlite] problem with INSERT after ALTER TABLE ... ADD COLUMN ... DEFAULT ... performed on source table

2014-04-25 Thread Hinrichsen, John
Default non-NULL values copied from a column that was added using "ALTER TABLE ... ADD COLUMN ... DEFAULT ..." are inserted into another table as NULLs when copied using "INSERT INTO ... SELECT * FROM ..." However, the same values are propagated correctly when "CREATE TABLE ... AS SELECT * FROM ..

Re: [sqlite] Documentation typo

2014-04-25 Thread Dominique Pellé
Drago, William wrote: > In section 2 of http://sqlite.org/foreignkeys.html the word > "separately" appears twice in the following sentence: > > Foreign key constraints are disabled by default (for backwards > compatibility), so must be enabled separately for each > database connection separately.

[sqlite] Documentation typo

2014-04-25 Thread Drago, William @ MWG - NARDAEAST
In section 2 of http://sqlite.org/foreignkeys.html the word "separately" appears twice in the following sentence: Foreign key constraints are disabled by default (for backwards compatibility), so must be enabled separately for each database connection separately. -- Bill Drago Senior Engineer

Re: [sqlite] foreign keys

2014-04-25 Thread Kees Nuyt
On Fri, 25 Apr 2014 09:22:20 +0100 (BST), olivier Ménard wrote: > Hello > > I tried, (with sqlite3 command line) : > > create table T(a primary key not null); > create table U(a references T not null); Shouldn't that be: create table U(a not null references T(a)); ? > insert into U values(4)

Re: [sqlite] Is a good idea for add support for windows kernel?

2014-04-25 Thread Richard Hipp
On Fri, Apr 25, 2014 at 12:36 AM, NULL wrote: > Hello, > > all! > Maybe,I thinks it's usefull that if sqlite add support for windows > kernel. > Now more and more users develop thire software in kernel,they must deal > all the things by themselves with no STL,BOOST and so on. > If they ne

Re: [sqlite] foreign keys

2014-04-25 Thread Drago, William @ MWG - NARDAEAST
More information about this here: http://sqlite.org/foreignkeys.html -Bill > -Original Message- > From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users- > boun...@sqlite.org] On Behalf Of Dominique Devienne > Sent: Friday, April 25, 2014 4:31 AM > To: olivier Ménard; General Discussi

Re: [sqlite] Is a good idea for add support for windows kernel?

2014-04-25 Thread Stephen Chrzanowski
SQLite isn't OS dependent. It also isn't directly subject to a virus, so to speak. Think of it as a plugin for a web browser, or DLC for a game, or similar sorts. You take the SQLite Library and either compile the source code into your program, or, you link it to DLL files. SQLite already relie

Re: [sqlite] Regression in sqlite-3.8.4 - sqlite crashes when nautilus queries DIST results

2014-04-25 Thread Richard Hipp
On Fri, Apr 25, 2014 at 4:54 AM, Honza Horak wrote: > Hi guys, > > in Fedora we got plenty of crash reports from users running strictly 32bit > arch build of sqlite-3.8.4 or later [1]. The problem can be reproduced > easily on 32bit, but is not seen on 64bit nor 32bit builds until > sqlite-3.8.3,

[sqlite] Regression in sqlite-3.8.4 - sqlite crashes when nautilus queries DIST results

2014-04-25 Thread Honza Horak
Hi guys, in Fedora we got plenty of crash reports from users running strictly 32bit arch build of sqlite-3.8.4 or later [1]. The problem can be reproduced easily on 32bit, but is not seen on 64bit nor 32bit builds until sqlite-3.8.3, which seems to be important fact for me. I found that this

[sqlite] Is a good idea for add support for windows kernel?

2014-04-25 Thread NULL
Hello, all! Maybe,I thinks it's usefull that if sqlite add support for windows kernel. Now more and more users develop thire software in kernel,they must deal all the things by themselves with no STL,BOOST and so on. If they need handle some complex works,it's a hard work.So usually,they

Re: [sqlite] foreign keys

2014-04-25 Thread Dominique Devienne
On Fri, Apr 25, 2014 at 10:22 AM, olivier Ménard wrote: > create table T(a primary key not null); > create table U(a references T not null); > insert into U values(4) C:\Users\DDevienne>sqlite3 SQLite version 3.8.4.3 2014-04-03 16:53:12 Enter ".help" for usage hints. Connected to a transient in-m

[sqlite] foreign keys

2014-04-25 Thread olivier Ménard
Hello I tried, (with sqlite3 command line) : create table T(a primary key not null); create table U(a references T not null); insert into U values(4) and it works but i don't want to, because the value 4 is not in T. I've tried PRAGMA foreign_keys first, but it's the same. Can someone give me a