Project

General

Profile

Actions

Bug #21730

closed

ALTER TABLE is not able to parse length restriction in index creation (Oracle)

Added by Xavier Perseguers almost 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2009-11-29
Due date:
% Done:

0%

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

Description

When installing RealURL, table tx_realurl_uniqalias contains a length restriction on field value_alias for index/key bk_realurl02. The length restriction is properly parsed during the table creation process (thanks to change #16689).

Now, due to #16689, the index cannot be actually created because its generated identifier name, in Oracle, is too long, DBAL wants to create it with name tx_realurl_uniqalias_bk_realurl02 which is 33 character wide and greater than the Oracle limit which is 30 characters and not even 32 as reported sometimes. As such, Install Tool asks us to ALTER TABLE tx_realurl_uniqalias to create the missing index:

ALTER TABLE tx_realurl_uniqalias ADD KEY bk_realurl02 (tablename,field_alias,field_id,value_alias(220),expire);

However length limit, although properly parsed in CREATE TABLE statements, is not handled when found in ALTER TABLE statements and trying to perform the change leads to a parser error:

ERROR: Query could not be parsed: "SQL engine parse ERROR: No ) parenthesis in list: near "(220),expire) "". Query: "ALTER TABLE tx_realurl_uniqalias ADD KEY bk_realurl02 (tablename,field_alias,field_id,value_alias(220),expire);"

(issue imported from #M12829)


Files

12829_core.diff (561 Bytes) 12829_core.diff Administrator Admin, 2010-02-14 18:29
12829_dbal.diff (1.13 KB) 12829_dbal.diff Administrator Admin, 2010-02-14 18:29

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #16292: installer doesn't cope with maximum table and field length (Oracle XE, MS SQL via DBlib)ClosedAndreas Kienast2006-06-27

Actions
Related to TYPO3 Core - Bug #16689: Index on tx_realurl_uniqalias breaks with DBALClosedXavier Perseguers2006-11-06

Actions
Related to TYPO3 Core - Bug #21719: Install Tool can not create cachingframework databasesClosedChristian Kuhn2009-11-27

Actions
Actions

Also available in: Atom PDF