Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-14 Thread Craig H Maynard
Igor, Two comments: - Why Homebrew? Because it's an invaluable tool for keeping up with the latest release of not just SQLite but every installed package of interest. - I think you missed the point. Niall is referring to the SQLite3 executable, not just the C source file. The excutable is need

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-13 Thread Igor Korot
Hi, On Sat, Jan 13, 2018 at 6:32 AM, Niall O'Reilly wrote: > > > On 11 Jan 2018, at 13:23, Richard Hipp wrote, in reply to John G > : > >> You can >> download and/or compile your own up-to-date SQLite that is twice as >> fast and has all the latest features. > > It may be more convenient to use

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-13 Thread Niall O'Reilly
On 11 Jan 2018, at 13:23, Richard Hipp wrote, in reply to John G : > You can > download and/or compile your own up-to-date SQLite that is twice as > fast and has all the latest features. It may be more convenient to use the [Homebrew package manager](https://brew.sh/), which tracks SQLite pre

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-12 Thread John G
Thanks Warren. Sorry about that, I had an old version in /opt/local/bin. John Gillespie On 11 January 2018 at 15:24, Warren Young wrote: > On Jan 11, 2018, at 5:47 AM, John G wrote: > > > > Is this because I am stuck with version 3.8.8.3 which is what MacOS > Sierra > > provides? > > I have sq

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-11 Thread Warren Young
On Jan 11, 2018, at 5:47 AM, John G wrote: > > Is this because I am stuck with version 3.8.8.3 which is what MacOS Sierra > provides? I have sqlite3 version 3.16.0 in /usr/bin on this 10.12.6 (Sierra) system. ___ sqlite-users mailing list sqlite-users@

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-11 Thread Richard Hipp
On 1/11/18, John G wrote: > > Is this because I am stuck with version 3.8.8.3 which is what MacOS Sierra > provides? > You are not stuck with the software provided by Sierra. You can download and/or compile your own up-to-date SQLite that is twice as fast and has all the latest features. -- D.

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-11 Thread John G
ence, >cidas ColumnID, >name as ColumnName, >"desc" as IsDescendingOrder, >coll as Collation, >key as IsPartOfKey > from SysIndexes > join pragma_index_xinfo(Ind

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Dinu
Keith Medcalf wrote > Full Schema Tables: Thanks for this, I will have grat use for it too, soon! Actually it's so nice I think it could go into the documentation. -- Sent from: http://sqlite.1065341.n5.nabble.com/ ___ sqlite-users mailing list sqlite

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Bart Smissaert
t anticipated traffic volume. > > > >-Original Message- > >From: sqlite-users [mailto:sqlite-users- > >boun...@mailinglists.sqlite.org] On Behalf Of Bart Smissaert > >Sent: Saturday, 6 January, 2018 15:54 > >To: SQLite mailing list > >Subject: Re: [sql

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Keith Medcalf
te.org] On Behalf Of Bart Smissaert >Sent: Saturday, 6 January, 2018 15:54 >To: SQLite mailing list >Subject: Re: [sqlite] sqlite3_column_decltype and max and min > >OK, thanks will have a look at that. >So, how about this one then: > >select max(integer_date) as [max_integer_

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Bart Smissaert
nticipated traffic volume. > > > >-Original Message- > >From: sqlite-users [mailto:sqlite-users- > >boun...@mailinglists.sqlite.org] On Behalf Of Bart Smissaert > >Sent: Saturday, 6 January, 2018 15:00 > >To: SQLite mailing list > >Subject: Re: [s

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Keith Medcalf
ic volume. >-Original Message- >From: sqlite-users [mailto:sqlite-users- >boun...@mailinglists.sqlite.org] On Behalf Of Bart Smissaert >Sent: Saturday, 6 January, 2018 15:00 >To: SQLite mailing list >Subject: Re: [sqlite] sqlite3_column_decltype and max and min > &

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Bart Smissaert
t about anticipated traffic volume. > > > >-Original Message- > >From: sqlite-users [mailto:sqlite-users- > >boun...@mailinglists.sqlite.org] On Behalf Of Bart Smissaert > >Sent: Saturday, 6 January, 2018 10:45 > >To: General Discussion of SQLite Databa

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Keith Medcalf
ic volume. >-Original Message- >From: Keith Medcalf [mailto:kmedc...@dessus.com] >Sent: Saturday, 6 January, 2018 12:40 >To: 'SQLite mailing list' >Subject: RE: [sqlite] sqlite3_column_decltype and max and min > > >SQLite version 3.22.0 2018-01-02 18:11:11 >E

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Keith Medcalf
ite.org] On Behalf Of Bart Smissaert >Sent: Saturday, 6 January, 2018 10:45 >To: General Discussion of SQLite Database >Subject: [sqlite] sqlite3_column_decltype and max and min > >Is there any way with sqlite3_column_decltype (or otherwise) to get >the >declared data type (as in

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Keith Medcalf
olume. >-Original Message- >From: sqlite-users [mailto:sqlite-users- >boun...@mailinglists.sqlite.org] On Behalf Of Bart Smissaert >Sent: Saturday, 6 January, 2018 10:45 >To: General Discussion of SQLite Database >Subject: [sqlite] sqlite3_column_decltype and max and min &

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Bart Smissaert
> Which is bound to lead to problems at some point. Not sure it is a problem if SQLite still recognizes the custom data types as it's own data types. Eg, int_date will be considered integer. RBS On Sat, Jan 6, 2018 at 5:59 PM, Simon Slavin wrote: > On 6 Jan 2018, at 5:45pm, Bart Smissaert wro

Re: [sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Simon Slavin
On 6 Jan 2018, at 5:45pm, Bart Smissaert wrote: > The custom datatype int_date is needed for formatting purpose to tell the > app that receives > the data that the column holds dates as integers. You can only get that in a documented way by parsing the CREATE TABLE command from sqlite_master.

[sqlite] sqlite3_column_decltype and max and min

2018-01-06 Thread Bart Smissaert
Is there any way with sqlite3_column_decltype (or otherwise) to get the declared data type (as in the table create sql in SQLite_master) when it is a simple expression such as max and min? for example we have a table created like this: create table1([integer_date] int_date) and we do: select ma