Hi John,

I have tried to create an in memory database according to the
documentation on this link
https://www.sqlite.org/inmemorydb.html

The documentation lists: (C code)

rc = sqlite3_open("file:memdb1?mode=memory&cache=shared", &db);

It creates a file on disk.... this is not supposed to happen.

I compiled with version 3.8.11 , i checked (see c-code below) that i
used the correct include file and library

I also checked via /proc/[processid]/ if it was loading the correct
version of the library (3.8.11), this all was correct

below is the 33 line code I used , again, a file is created on disk,
this shoudnt happen.

Regards
Jacob Bogers


CODE START:
=============
#include <stdio.h>
#include <sqlite3.h>

#include <sys/types.h>
#include <unistd.h>

int main(int argc, char ** argv )
{

    sqlite3 *db;

    int rc = sqlite3_open("file:memdb?mode=memory&cache=shared" , &db);

    printf("libversion macro is:[%s]\n", SQLITE_VERSION );
    printf("libversion is:[%s]\n", sqlite3_libversion() );

    printf("return code:%d\n", rc);

    pid_t pid = getpid();

    printf("process id:%ld", (long) pid);

    getchar();

    sqlite3_close(db);



    return 0;

}
===========
CODE END:

On Mon, Oct 5, 2015 at 3:07 AM, John McKown
<john.archie.mckown at gmail.com> wrote:
> Might give this a read:
> http://www.sqlite.org/src/wiki?name=Bug+Reports
> But, basically, this is the place to report your problem. Be as exact as
> you can. I.e. Show the _exact_ statement that is not matching the
> documentation. Also, give a good link to the doc that you think is in
> error. Also, you might want to give a quote of the exact documentation,
> _and_ what you think it means. I know that on more than one occasion, I
> have read something, tried to explain why it was an error, and it ended up
> that I just didn't understand the wording (in a language, the difference
> between an "statement separator" and a "statement ending" symbol.Hey, what
> can I say? I'm a Texan. Ain't much doc in Texan out there! [grin/].
>
> On Sun, Oct 4, 2015 at 5:22 PM, Jacob <jacobusbogers at gmail.com> wrote:
>
>> Hi, I have discovered a bug, or at least inconsistancy with documantation,
>>
>> DO i submit the bug through this mailing list, or is there a ticket system?
>>
>> Regards
>> Jacob
>> _______________________________________________
>> sqlite-users mailing list
>> sqlite-users at mailinglists.sqlite.org
>> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
>>
>
>
>
> --
>
> Schrodinger's backup: The condition of any backup is unknown until a
> restore is attempted.
>
> Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be.
>
> He's about as useful as a wax frying pan.
>
> 10 to the 12th power microphones = 1 Megaphone
>
> Maranatha! <><
> John McKown
> _______________________________________________
> sqlite-users mailing list
> sqlite-users at mailinglists.sqlite.org
> http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to