Re: adodb and M$ access databases
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: adodb and M$ access databases

From: Tim Roberts <timr@probo.com>
Date: Fri Sep 30 2005 - 08:35:19 CEST

Gerald Aichholzer <gary@sbox.tugraz.at> wrote:
>
>I am using the Prade framework which includes a slightly
>modified version von adodb 4.61 and I am working with M$
>Access databases via OleDb (TAdodb is a wrapper class of
>the ADODB ADOConnection class):
>
> $source = "Provider=Microsoft.Jet.OLEDB.4.0;".
> "Data Source=d:\temp\test.mdb";
>
> $this->connection = new TAdodb();
> $this->connection = &ADONewConnection('ado_access');
> $this->connection->setFetchMode('Associative');
> $this->connection->Connect($source);
>
>Although I have activated associative fetchmode I only
>get field indices in my query results. Using SQLite as
>database (which is unfortunately not an option for my
>current project) it works as expected.
>
>I have already searched Google, the phplens-forum and the
>adodb mailing list, but haven't found anything useful.
>
>Is this a known bug/feature of adodb?

Doubtful. The reference page for ADOdb shows that SetFetchMode wants an
integer, not a string. Try the constant ADODB_FETCH_ASSOC instead of
'Associative'.

-- 
- Tim Roberts, timr@probo.com
  Providenza & Boekelheide, Inc.
Received on Tue Oct 18 02:29:50 2005