Hi,
I'm trying to solve efficiently the following task with SQlite:
* There is a trace file which contains a big number of some objects. Each
object has a number of fields which constitute its primary key (PK).
* The objects are loaded into a table which has a number of PK columns (mapped
from th
t's OK to have an aggregated function in the select list
for non-grouped column. This is correct many-to-one mapping.
--
Alexei Alexandrov
-
To unsubscribe, send email to [EMAIL PROTECTED]
-
ses I know will complain if you give them this query.
--
Alexei Alexandrov
-
To unsubscribe, send email to [EMAIL PROTECTED]
-
query should not be accepted:
select a from qqq group by b;
but it is.
--
Alexei Alexandrov
-
To unsubscribe, send email to [EMAIL PROTECTED]
-
Still I can't understand why sqlite3_column_text returns (unsigned
char *), but sqlite3_bind_text takes (const char *). What am I
missing?
On 6/30/06, Alexei Alexandrov <[EMAIL PROTECTED]> wrote:
>
> Perhaps because it is returning UTF8 and that needs to be unsigned, not
si
Perhaps because it is returning UTF8 and that needs to be unsigned, not signed?
Hmm, why sqlite3_bind_text takes const char * then?
--
Alexei Alexandrov
Why does it return *unsigned* char *? Just const char * would seem
more natural - now I need to cast it on Windows. Also from the docs
it's not clear who owns the memory returned. I assume that SQLite owns
it until sqlite3_step is called.
--
Alexei Alexandrov
case, while still be able to enable the
stuff for other OSes as soon as there is a need for it.
--
Alexei Alexandrov
iciently in dbf-based
simple databases (FoxPro, Codebase), but it seems to me that I'm just
missing something very basic about SQLite features.
Yes??
--
Alexei Alexandrov
use
__attribute__ ((aligned (16)))
but it is not portable.
Please don't hesitate to ask for clarifications if something is not
clear here - I really want to follow it up ASAP.
--
Alexei Alexandrov
16 bytes" because this will lead to huge memory
footprint overhead - every element - even 1 byte-long will take 16
bytes in memory. This is not an option.
--
Alexei Alexandrov
ct this fix in the next SQLite
release? Should I submit a ticket for this? I will provide Linux
ia64/x86_64 testing from my side.
--
Alexei Alexandrov
> Perhaps a better fix is this:
>
> struct Mem {
>i64 i;
>double r;
>char *z;
>int n;
>u16 flags;
>u8 type;
>u8 enc;
>void (*xDel)(void *);
>union {
> long double notUsed1;
> char zShort[NBFS];
>};
> };
>
> The compiler would then (hopefully) in
e doesn't like it. I start SQLite shell, and it says
immediately (or when I create a simple table):
D:\src\3rd-parties\sqlitecomp\bin\windows-x32>sqlite3-test.exe test.db
SQL error: malformed database schema
Can't prepare statement: no such table: test
Reproduced on Windows x86 and Linux ia64.
--
Alexei Alexandrov
to change the on-disk format. This is why I'm checking
it out early in the game. So far, it seems to be OK. Thanks to you for
that.
P.S. As kind of access to additional hardware have you ever heard
about HP testdrive machines? You can take a look at it here:
http://www.testdrive.hp.com/accounts/register.shtml
--
Alexei Alexandrov
PROTECTED] <[EMAIL PROTECTED]> wrote:
> "Alexei Alexandrov" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I don't know whether it's been already reported or not, so anyway.
> > There are places in SQLite where unaligned access exception is
> &
I use those that come with the distribution. Since it's one of the
latest distros (Red Hat EL 4 Update 2), it's not that archaic:
$ rpm -qa | grep tcl
tcl-devel-8.4.7-2
tcl-8.4.7-2
On 3/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> "Alexei Alexandrov" <
it is not related.
On 3/25/06, Alexei Alexandrov <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I don't know whether it's been already reported or not, so anyway.
> There are places in SQLite where unaligned access exception is
> generated on Itanium. The unaligned access me
tl --unaligned=signal
ulimit -c unlimited
After that unaligned access will cause SIGBUS and core dump will be generated.
P.P.S. Unaligned access can lead to serious performance degradations
and on some OSes (HP-UX) there isn't default unaligned access handler
so it will just crash.
--
Alexei Alexandrov
[1 C
]
Got: []
types3-1.3...
Expected: [wideInt integer]
Got: [int integer]
Is it expected?
--
Alexei Alexandrov
194c194
< n = (int)azResult[0];
---
> n = (size_t)azResult[0];
--
Alexei Alexandrov
there are any
showstoppers or serious problems that we can face with if we try to use SQLite
on those platforms.
I appreciate your help, colleagues.
Thanks a lot!
--
Alexei Alexandrov
extern int isatty();
-
/*
** The following is the open SQLite database. We make a pointer
** to this database a static variable so that it can be accessed
--- 54,59
--
Alexei Alexandrov
23 matches
Mail list logo