Re: [sqlite] Out of memory error for SELECT char();

2014-03-09 Thread Yuriy Kaminskiy
Eduardo Morras wrote: > On Sat, 8 Mar 2014 14:09:17 -0500 > Richard Hipp wrote: >> It isn't really running out of memory >> >> The implementation of char() allocates 4 bytes of output buffer for >> each input character, which is sufficient to hold any valid unicode >>

Re: [sqlite] Out of memory error for SELECT char();

2014-03-09 Thread Eduardo Morras
On Sat, 8 Mar 2014 14:09:17 -0500 Richard Hipp wrote: > It isn't really running out of memory > > The implementation of char() allocates 4 bytes of output buffer for > each input character, which is sufficient to hold any valid unicode > codepoint. But with zero input

Re: [sqlite] Out of memory error for SELECT char();

2014-03-08 Thread Luuk
It happens on Windows 7 too: C:\temp>sqlite3 SQLite version 3.8.3.1 2014-02-11 14:52:19 Enter ".help" for instructions Enter SQL statements terminated with a ";" sqlite> select char(); Error: out of memory sqlite> select char(65); A sqlite> ___

Re: [sqlite] Out of memory error for SELECT char();

2014-03-08 Thread Richard Hipp
On Sat, Mar 8, 2014 at 1:25 PM, Zsbán Ambrus wrote: > In the sqlite3 console, the following very simple statement gives > "Error: out of memory": > > SELECT char(); > > I think this is a bug. This query should need very little memory, so > it should not give such an error.

Re: [sqlite] Out of memory error for SELECT char();

2014-03-08 Thread Dan Kennedy
On 03/09/2014 01:25 AM, Zsbán Ambrus wrote: In the sqlite3 console, the following very simple statement gives "Error: out of memory": SELECT char(); I think this is a bug. It is. Thanks for the report. Now fixed here: http://www.sqlite.org/src/info/ba39df9d4f Dan. This query

Re: [sqlite] Out of memory error for SELECT char();

2014-03-08 Thread Zsbán Ambrus
On 3/8/14, Simon Slavin wrote: > SQLite version 3.7.13 2012-07-17 17:46:21 The char function was added in 3.7.16. > Could you please post your OS and the version of the SQLite shell tool > you're using ? I'm using Linux amd64, compiling with gcc 4.8.1. I've got the out

Re: [sqlite] Out of memory error for SELECT char();

2014-03-08 Thread Simon Slavin
On 8 Mar 2014, at 6:25pm, Zsbán Ambrus wrote: > In the sqlite3 console, the following very simple statement gives > "Error: out of memory": > > SELECT char(); > > I think this is a bug. 162:~ simon$ sqlite3 ~/Desktop/test.sqlite SQLite version 3.7.13 2012-07-17 17:46:21

[sqlite] Out of memory error for SELECT char();

2014-03-08 Thread Zsbán Ambrus
In the sqlite3 console, the following very simple statement gives "Error: out of memory": SELECT char(); I think this is a bug. This query should need very little memory, so it should not give such an error. I believe it should return a single row with a single value of an empty string. I've