From: tworoses1@gmail.com
Subject: QtSql problem
Date: Thu, 5 Feb 2009 20:43:43 -0800 (PST)
Date: 2009-02-05T20:43:43-08:00 [thread overview]
Message-ID: <c3a46738-7368-4516-85d5-b8e3fff491ba@k36g2000pri.googlegroups.com> (raw)
I'm trying to do some basic stuff with QtSql (a part of QtAda) but I
just can't figure it out.
declare
Query : constant Qt4.Sql_Queries.Q_Sql_Query
:= Qt4.Sql_Queries.Create (DB);
begin
Query.Exec (Qt4.Strings.From_Utf_16
("create table images (id tinyint primary key, "
& "filename varchar(20))"));
Query.Exec (Qt4.Strings.From_Utf_16
("insert into images values(1, 'hello.jpg')"));
Query.Exec(Qt4.Strings.From_Utf_16
("select * from images"));
while (Query.Next) loop
Filename := Query.Value(0).To_String;
end loop;
end;
Compiles fine but crashes with:
raised PROGRAM_ERROR : EXCEPTION_ACCESS_VIOLATION
[2009-02-06 15:37:27] process exited with status1 (elapsed time:
00.59s)
Any ideas?
Thanks,
Claire.
next reply other threads:[~2009-02-06 4:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-06 4:43 tworoses1 [this message]
2009-02-06 8:27 ` QtSql problem Vadim Godunko
2009-02-06 8:31 ` Gautier
2009-02-06 18:21 ` tworoses1
2009-02-06 19:56 ` Gautier
2009-02-06 20:44 ` tworoses1
2009-02-06 22:51 ` sjw
2009-02-08 0:09 ` tworoses1
2009-02-09 14:04 ` Vadim Godunko
2009-02-09 15:55 ` Ivan Levashew
2009-02-10 10:32 ` Vadim Godunko
2009-02-13 4:21 ` tworoses1
2009-02-07 21:17 ` Georg Bauhaus
2009-02-10 3:09 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox