Project

General

Profile

Actions

Bug #15971

closed

Extensions which use function pi_getPidList() from class tslib_pibase do not work with DBAL

Added by Rupert Germann over 18 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2006-04-03
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The function pi_getPidList() from class tslib_pibase which is used in some extensions (e.g. tt_news) to get the list of pids where to search for records is always returning 0 when DBAL is used. Therefore an extension which uses this function will never display any records.

TYPO3 4.0 cvs with dbal enabled
Postgres 8.3.1
PHP 5.1.2
(issue imported from #M3104)

Actions #1

Updated by Karsten Dambekalns over 18 years ago

I tried it, and with recursive starting point this ideed fails. I debugges it as far as this: the db (PostgreSQL 7.4) returns only a numeric key, although numeric and associative keys are requested. In the following sql_fetch_assoc() call the numeric keys get dumped and the query seemingly fails...

I have to debug this further...

Actions #2

Updated by Karsten Dambekalns over 18 years ago

Thanks to Christian Welzel for bringing some light into the issue. He found that the sue of admin_get_keys() in tt_news causes this, as somewhere in that method the fetch mode is set to ADODB_FETCH_NUM. Hooray and thanks for that info.

I tracked it down to a bug in the ADOdb extension maintained by me, and will upload a fixed version later today.

Actions #3

Updated by Karsten Dambekalns over 18 years ago

Please check if the issue is resolved with version 4.81.0 of the ADOdb extension. Thanks.

Actions #4

Updated by Rupert Germann over 18 years ago

with version 4.81.0 pi_getPidList() returns the correct values.

Actions #5

Updated by Karsten Dambekalns over 18 years ago

Thanks.

Actions

Also available in: Atom PDF