vinicius | 6 Jan 2006 18:08
Picon

problem- migrate adodb3.4+postgresql 7.2.1 to adodb3.4+postgresql 7.4.8

im having problems to migrate a system that use adodb 3.4 and postgresql 7.2.1 
to postgresql 7.4.8, and i don't search the correct documentation. 

I want to know if adodb3.4 suport postgre7.4.8? 

--

-- 
Vinicius Dittgen
CDP - FCDL-RS
www.spcrs.com.br

"A mente que se abre a uma nova idéia
jamais volta ao seu tamanho original."
(Albert Einstein)

**Paz, Amor e Software Livre**


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
Jack Lewis | 12 Jan 2006 02:48
Picon

Equivalent of MySQL's now() in GetUpdateSQL()?

How do you pass the equivalent of MySQL's now() for date-time columns to GetUpdateSQL()?  For example, here is the old MySQL-specific SQL:

 UPDATE foo SET bar='blah', dt_modified=now() WHERE id=1


Now I want to migrate to ADOdb's GetUpdateSQL(), so I try this:

 $rs = $db->Execute("SELECT * FROM foo WHERE id = 1");
 $foo_record['dt_modified'] = $db->DBTimeStamp(time());
 $foo_record['bar'] = 'blah';
 $sql = $db->GetUpdateSQL($rs, $foo_record);


Unfortunately, the generated SQL is invalid.
  I think it's because the date-time is quoted.  I miss now(), so what is the correct, clean way?


Jack

Rob van Kraanen | 17 Jan 2006 10:59
Picon

Multiple Database objects

Hi,

I'm new to this list ans relative new to adodb.
I'm trying to create 2 database objects at the same time, and acces them.
The first object is set in the index:
$conn = ADONewConnection('mysql');
$conn->PConnect(xx,xx,xx,xx);
$conn->debug = false;
$conn->SetFetchMode(ADODB_FETCH_ASSOC);

the second object i make in a class, this is the code

$conn_dns_1 = ADONewConnection('mysql');
$conn_dns_1->PConnect(xx,xx,xx,xx);
$conn_dns_1->debug = true;
$conn_dns_1->SetFetchMode(ADODB_FETCH_ASSOC);

But when i initialize this object the first one is no longer usable.
I think it is an error with the &-option of adodb.

can anyone help me?

regards Rob

--

-- 
--
Lingewoud B.V.    |   Tel. +31 418 663963
Maasdijk 4        |   Fax. +31 418 663053
5328 BG Rossum    |     info <at> lingewoud.nl
The Netherlands   |      www.lingewoud.nl
Picon
Picon
Favicon

RE: Multiple Database objects (Rob van Kraanen)

Hi Rob:

Try to change this :

$conn->PConnect(xx,xx,xx,xx); ---> $conn->Connect(xx,xx,xx,xx); 

$conn_dns_1->PConnect(xx,xx,xx,xx); ---> $conn_dns_1->Connect(xx,xx,xx,xx);

Alejandro Michelin Salomon
Porto Alegre
Brasil

Rob van Kraanen wrote :

<Hi,

<I'm new to this list ans relative new to adodb.
<I'm trying to create 2 database objects at the same time, and acces them.
The first object is set in the index: $conn =3D <ADONewConnection('mysql');
$conn->PConnect(xx,xx,xx,xx); $conn->debug =3D false;
$conn->SetFetchMode(ADODB_FETCH_ASSOC);

<the second object i make in a class, this is the code

<$conn_dns_1 =3D ADONewConnection('mysql');
$conn_dns_1->PConnect(xx,xx,xx,xx);
<$conn_dns_1->debug =3D true; $conn_dns_1->SetFetchMode(ADODB_FETCH_ASSOC);

<But when i initialize this object the first one is no longer usable. I
think it is an error with the &-option of adodb.

<can anyone help me?

<regards Rob

<=2D-=20
<=2D-
<Lingewoud B.V.    |   Tel. +31 418 663963
<Maasdijk 4        |   Fax. +31 418 663053
<5328 BG Rossum    |     info <at> lingewoud.nl
<The Netherlands   |      www.lingewoud.nl

--

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.14.20/233 - Release Date: 18/1/2006

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
Alfredo Yong | 18 Jan 2006 15:46
Picon

Re: Problems using GetOne in complex queries

Hi,
 
About the GetOne method of the ADOconnection object:
 
seems to work fine when there is a simple query, something like:
 
"select  u_name from users when u_code=34"
 
But I have problems when trying to get things like:
 
"SELECT count(t.nt_titular)
         FROM noticias n
          LEFT JOIN noticias_temas t ON n.not_codigo = t.not_codigo
          LEFT JOIN noticias_fuentes f ON t.nt_codigo = f.nt_codigo
      WHERE n.not_codigo = 23 and char_length(trim(both from t.nt_titular)) > 0"
 
This query works fine when executing with the Execute method.
 
greetings,
 


--
Alfredo Yong
Sistemas web
Rob van Kraanen | 19 Jan 2006 08:12
Picon

Re: RE: Multiple Database objects (Rob van Kraanen)

Thanks, it works!!!

But why can't i make multiple persistent connections?
Is there a specific reason for that, or just because?

regards Rob
On Wednesday 18 January 2006 12:01, Alejandro Michelin Salomon ( Adinet ) 
wrote:
> Hi Rob:
>
> Try to change this :
>
> $conn->PConnect(xx,xx,xx,xx); ---> $conn->Connect(xx,xx,xx,xx);
>
> $conn_dns_1->PConnect(xx,xx,xx,xx); ---> $conn_dns_1->Connect(xx,xx,xx,xx);
>
> Alejandro Michelin Salomon
> Porto Alegre
> Brasil
>
> Rob van Kraanen wrote :
>
> <Hi,
>
> <I'm new to this list ans relative new to adodb.
> <I'm trying to create 2 database objects at the same time, and acces them.
> The first object is set in the index: $conn =3D <ADONewConnection('mysql');
> $conn->PConnect(xx,xx,xx,xx); $conn->debug =3D false;
> $conn->SetFetchMode(ADODB_FETCH_ASSOC);
>
> <the second object i make in a class, this is the code
>
> <$conn_dns_1 =3D ADONewConnection('mysql');
> $conn_dns_1->PConnect(xx,xx,xx,xx);
> <$conn_dns_1->debug =3D true; $conn_dns_1->SetFetchMode(ADODB_FETCH_ASSOC);
>
>
> <But when i initialize this object the first one is no longer usable. I
> think it is an error with the &-option of adodb.
>
> <can anyone help me?
>
> <regards Rob
>
> <=2D-=20
> <=2D-
> <Lingewoud B.V.    |   Tel. +31 418 663963
> <Maasdijk 4        |   Fax. +31 418 663053
> <5328 BG Rossum    |     info <at> lingewoud.nl
> <The Netherlands   |      www.lingewoud.nl

--

-- 
--
Lingewoud B.V.    |   Tel. +31 418 663963
Maasdijk 4        |   Fax. +31 418 663053
5328 BG Rossum    |     info <at> lingewoud.nl
The Netherlands   |      www.lingewoud.nl

Gmane