comp.lang.ada
 help / color / mirror / Atom feed
* QtSql problem
@ 2009-02-06  4:43 tworoses1
  2009-02-06  8:27 ` Vadim Godunko
  0 siblings, 1 reply; 14+ messages in thread
From: tworoses1 @ 2009-02-06  4:43 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-02-13  4:21 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-06  4:43 QtSql problem tworoses1
2009-02-06  8:27 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox