Project

General

Profile

Actions

Bug #15480

closed

fields in sys_refindex too short

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

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-01-22
Due date:
% Done:

0%

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

Description

There are some fields in sys_refindex, that are too short to hold the given data. This is no problem with mysql because it ignores this failures silently, but postgresql (using dbal) complains about that and throws errors.

example:
INSERT INTO "sys_refindex" ( "tablename", "recuid", "field", "flexpointer", "softref_key", "softref_id", "sorting", "ref_table", "ref_uid", "ref_string", "hash" ) VALUES ( 'tx_templavoila_tmplobj', '3', 'fileref', '', 'typolink', 'b2186e761677186132bff6a1dc8eedee:0', '-1', '_FILE', '0', 'fileadmin/templates/impressum_tmpl_05.html', '705087ea69f40ffd9c8a31f2b9809b9c' )

ERROR: value too long for type character varying(40)

in this case the error is caused by ref_string (42 characters)

(issue imported from #M2352)

Actions #1

Updated by Karsten Dambekalns almost 19 years ago

Yes, definitely a problem. Kasper, any reason this is used that way? We could either set the field size higher or always insert a substring, if this is all we need anyway.

Actions #2

Updated by Kasper Skårhøj almost 19 years ago

This is fixed in the next update to CVS from me.

Actions

Also available in: Atom PDF