Project

General

Profile

Actions

Bug #15492

closed

No support for LIMIT [PostgreSQL]

Added by Christian Welzel almost 19 years ago. Updated over 14 years ago.

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

0%

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

Description

class.ux_t3lib_db.php::SELECTquery() does not support the rewriting of LIMIT #,# syntax. This causes a problem with postgresql because this syntax is not supported.
Postgresql needs "LIMIT # OFFSET #" instead.

(issue imported from #M2367)


Files

2367.diff (1.11 KB) 2367.diff Administrator Admin, 2010-02-21 12:59

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #16187: INSERTquery() and UPDATEquery() don't return a string on all occasionsClosed2006-05-26

Actions
Actions #1

Updated by Karsten Dambekalns almost 19 years ago

It doesn't, but exec_SELECTquery() does.

Actions #2

Updated by Christian Welzel almost 19 years ago

the problem is that some extensions like dam and chc_forum use following to do their queries:

$query = $GLOBALS['TYPO3_DB']->SELECTquery(...);
$GLOBALS['TYPO3_DB']->sql_query($query);

i would swear there are more extensions that use this scheme. and in this case, the missing LIMIT support is a real problem.

Actions #3

Updated by Christian Welzel almost 19 years ago

this problem with non rewritten limit clause also applies to class.tslib_pibase in line 1101. there $LIMIT is build as "##,##" and then SELECTquery is used in line 1114.
so all extensions using pi_list_query() break in this issue.

Actions #4

Updated by Christian Welzel over 18 years ago

  1. a small reminder to fix this bug as it breaks all plugins using pi_list_query() ###
Actions #5

Updated by Xavier Perseguers over 14 years ago

Committed to

- trunk (rev. 30269) [with unit tests]
- DBAL_1-0 (rev. 30270)

Actions

Also available in: Atom PDF