help-octave
[Top][All Lists]
Advanced

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

Re: octave-database - data entry into database table


From: richard
Subject: Re: octave-database - data entry into database table
Date: Mon, 18 Feb 2013 21:51:09 +0000
User-agent: Mutt/1.5.20 (2009-06-14)

On Mon, Feb 18, 2013 at 09:56:58PM +0100, Olaf Till wrote:
> On Mon, Feb 18, 2013 at 09:28:14PM +0100, Olaf Till wrote:
> > On Mon, Feb 18, 2013 at 09:01:54PM +0100, Olaf Till wrote:
> > > But I still have no idea why the std::string representation in frame
> > > #0 below can't be constructed (since I can't reproduce it here). Maybe
> > > something occurs to me, but probably this has to wait until tomorrow.
> > 
> > I suppose it has something to do with the order of initializations, I
> > didn't consider that this is undefined. Probably at your system
> > conv_ptrs in converters.cc is initialized before pq_basetype_prefix in
> > pq_connection.cc, which should be the cause of the segfault.
> > 
> > Thanks for the report. I'll make up a patch.
> 
> It is commited to SVN.
> 
> Could you check it by (from shell):
> 
> umask 022
> svn checkout 
> svn://svn.code.sf.net/p/octave/code/trunk/octave-forge/main/database/ 
> database-2.0.1
> cd database-2.0.1/src
> ./autogen.sh
> rm -r autom4te.cache
> cd ../..
> tar -czf database-2.0.1.tar.gz database-2.0.1
> 
> and installing it as root as you've done with -2.0.0?
> 
> Olaf
> 
> -- 
> public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Follow-up to my earlier email. 
I tried a few things, this worked: 
 conn = pq_connect (setdbopts ("host", "localhost", "dbname", "rome", "user", 
"username", "password", "secret"));

and pq_exec_params worked for 'select' queries:
pq_exec_params (conn, "select * from rome001;")

It may take a day to two to be sure that it all works, 
but it looks good so far. 

Thanks for your help with this 

Richard
 
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]