PHP 4.0 Bug #5528: Query not function properly

From: Date: Wed, 12 Jul 2000 11:05:50 +0000
Subject: PHP 4.0 Bug #5528: Query not function properly
Groups: php.dev 
Request: Send a blank email to php-dev+get-24176@lists.php.net to get a copy of this message
From: felli@ingv.it Operating system: Linux RedHat 6.2 PHP version: 4.0.1pl2 PHP Bug Type: PostgreSQL related Bug description: Query not function properly If i send a query at postgresql for retrive field codice_luogo the php respond with wrong result. The same query in pgsql work fine. amministrazione=> \d personale Table = personale +----------------------------------+----------------------------------+-------+ | Field | Type | Length| +----------------------------------+----------------------------------+-------+ | cognome | char() not null | 25 | | nome | char() not null | 25 | | titolo | char() | 6 | | sesso | char() not null | 7 | | data_nascita | date not null | 4 | | codice_fiscale | char() not null | 16 | | e_mail | char() | 40 | | recapito_tel_1 | char() not null | 20 | | recapito_tel_2 | char() | 20 | | asl_appartenenza | char() | 10 | | tipo_assunzione | char() not null | 1 | | tipo_ruolo | char() not null | 2 | | data_nomina_ruolo | date not null | 4 | | data_cessazione_ruolo | date | 4 | | motivo_cessazione_ruolo | char() | 15 | | numero_delibera_ruolo | char() not null | 20 | | tipo_assunzione_ruolo | char() not null | 2 | | codice_paga | int4 not null | 4 | | tipo_paga | char() not null | 1 | | quota_contanti_lire | numeric | 30.6 | | quota_contanti_euro | numeric | 30.6 | | quota_accredito_lire | numeric | 30.6 | | quota_accredito_euro | numeric | 30.6 | | codice_luogo | int4 | 4 | | indirizzo_domicilio | char() not null | 30 | | indirizzo_residenza | char() not null | 30 | | indirizzo_sede | char() not null | 30 | +----------------------------------+----------------------------------+-------+ Index: personale_pkey amministrazione=> $quasar12=db_query("SELECT codice_luogo from personale where codice_fiscale='$codice_fiscale'"); the codice_luogo has value 102 php query return 14, psql query return 102. thanks for help. bye

« previous php.dev (#24176) next »