Re: [sqlite] bug: compare number with empty string get different resut

2018-08-19 Thread Keith Medcalf
ge- >From: sqlite-users [mailto:sqlite-users- >boun...@mailinglists.sqlite.org] On Behalf Of ?? >Sent: Sunday, 19 August, 2018 00:58 >To: sqlite-users >Subject: [sqlite] bug: compare number with empty string get different >resut > >create table t1(c int); >insert

Re: [sqlite] bug: compare number with empty string get different resut

2018-08-19 Thread Norman Dunbar
Ok, thanks everyone, it's perfectly clear now. Cheers, Norm. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listin

Re: [sqlite] bug: compare number with empty string get different resut

2018-08-19 Thread Simon Slavin
On 19 Aug 2018, at 7:56pm, Warren Young wrote: > On Aug 19, 2018, at 10:03 AM, Norman Dunbar wrote: > >> Duck Typing? Never heard that before. > > It’s a pretty common term of art in the software development world: > > https://en.wikipedia.org/wiki/Duck_typing That article was written 20 y

Re: [sqlite] bug: compare number with empty string get different resut

2018-08-19 Thread Warren Young
On Aug 19, 2018, at 10:03 AM, Norman Dunbar wrote: > > Duck Typing? Never heard that before. It’s a pretty common term of art in the software development world: https://en.wikipedia.org/wiki/Duck_typing ___ sqlite-users mailing list sqlite-users@ma

Re: [sqlite] bug: compare number with empty string get different resut

2018-08-19 Thread Norman Dunbar
Duck Typing? Never heard that before. Cheers, Norm. -- Sent from my Android device with K-9 Mail. Please excuse my brevity and any "auto corrections" that are just wrong! ___ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailing

Re: [sqlite] bug: compare number with empty string get different resut

2018-08-19 Thread R Smith
On 2018/08/19 8:58 AM, 麦轲数据管家 wrote: create table t1(c int); insert into t1 values (1),(2),(3); select * from t1 where c>'' ; --get nothing(empty result) select * from t1 where c<''; --get result set:1,2,3 create table t2(c char); insert into t2 values (1),(2),(3); select * from t2 where c>

Re: [sqlite] bug: compare number with empty string get different resut

2018-08-19 Thread Abroży Nieprzełoży
It's documented behaviour. https://www.sqlite.org/datatype3.html#comparisons 2018-08-19 8:58 GMT+02:00, 麦轲数据管家 : > create table t1(c int); > insert into t1 values (1),(2),(3); > select * from t1 where c>'' ; --get nothing(empty result) > select * from t1 where c<''; --get result set:1,2,3 > >

[sqlite] bug: compare number with empty string get different resut

2018-08-19 Thread ????????????
create table t1(c int); insert into t1 values (1),(2),(3); select * from t1 where c>'' ; --get nothing(empty result) select * from t1 where c<''; --get result set:1,2,3 create table t2(c char); insert into t2 values (1),(2),(3); select * from t2 where c>'';--get correct result set: 1,2,