Re: Gnome::Gda::Connection Help



On Sun, 2010-11-21 at 10:19 -0300, Culpian Camilo Martin wrote:
> El dom, 21-11-2010 a las 13:58 +0100, Krzesimir Nowak escribió:
> > On Sun, 2010-11-21 at 09:51 -0300, Culpian Camilo Martin wrote:
> > > El dom, 21-11-2010 a las 13:40 +0100, Krzesimir Nowak escribió:
> > > > Glib::Error::what ()
> > > In the standard out i get:
> > > glibmm-WARNING **: Glib::Error::throw_exception():
> > > unknown error domain 'gda_connection_error': throwing generic
> > > Glib::Error exception
> > > 
> > > and when i call Glib::Error::what (), i get:
> > > No Description
> > > 
> > 
> > Hm, looks like you haven't call Gnome::Gda::init () before. It must be
> > called before doing anything with libgdamm.
> > 
> > Also, when responding please add gtkmm-list to CC.
> ok, now i don't get the warning, but the Glib::Error is the same...

Then I don't know too. Try downloading also some debuginfos for libgdamm
and libgda and investigate a problem with a debugger. Maybe you haven't
installed a provider or maybe cnc string lacks information about
something a provider needs.

Also, if you copy-pasted the code below then you missed a quotes after
MySQL. But that wouldn't compile anyway.

connection->open_from_string("MySQL,"HOST=localhost;DB_NAME=database_name","USERNAME=user;PASSWORD=password");




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]