- Posts: 3
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Install error with PostgreSQL 15.2
- heja.tibor
- Topic Author
- Offline
- New Member
Less
More
1 year 2 months ago #240718
by heja.tibor
Install error with PostgreSQL 15.2 was created by heja.tibor
Please help us help you and fill where relevant:
Your LimeSurvey version: Version 5.6.5+230214
Own server or LimeSurvey hosting: own server
Survey theme/template: fruity
==================
Hi All,
During the installation process, using PostgreSQL as backend db, at the step of setting admin password (I hope, I remember correctly), I've got an internal server error. The PostgreSQL log said:
ERROR: UNION types "char" and text cannot be matched at character 277
SELECT
conname,
consrc,
contype,
indkey
FROM (
SELECT
conname,
pg_catalog.pg_get_constraintdef(oid) AS consrc,
contype,
conrelid AS relid,
NULL AS indkey
FROM
pg_catalog.pg_constraint
WHERE
contype IN ('f', 'c')
UNION ALL
SELECT
pc.relname,
NULL,
CASE WHEN indisprimary THEN
'p'
ELSE
'u'
END,
pi.indrelid,
indkey
FROM
pg_catalog.pg_class pc,
pg_catalog.pg_index pi
WHERE
pc.oid=pi.indexrelid
AND EXISTS (
SELECT 1 FROM pg_catalog.pg_depend d JOIN pg_catalog.pg_constraint c
ON (d.refclassid = c.tableoid AND d.refobjid = c.oid)
WHERE d.classid = pc.tableoid AND d.objid = pc.oid AND d.deptype = 'i' AND c.contype IN ('u', 'p')
)
) AS sub
WHERE relid = (SELECT oid FROM pg_catalog.pg_class WHERE relname='lime_users'
AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace
WHERE nspname='public'))
In the limesurvey/vendor/yiisoft/yii/framework/db/schema/pgsql/CPgsqlSchema.php I've found the source of this problem. Making small modification I could overcome this problem, the contype should be casted to contype::char.
I don't know if it is possible the modify the code in the yii, or find a workaround, but maybe this info will help somebody.
Cheers
Tibor
Your LimeSurvey version: Version 5.6.5+230214
Own server or LimeSurvey hosting: own server
Survey theme/template: fruity
==================
Hi All,
During the installation process, using PostgreSQL as backend db, at the step of setting admin password (I hope, I remember correctly), I've got an internal server error. The PostgreSQL log said:
ERROR: UNION types "char" and text cannot be matched at character 277
SELECT
conname,
consrc,
contype,
indkey
FROM (
SELECT
conname,
pg_catalog.pg_get_constraintdef(oid) AS consrc,
contype,
conrelid AS relid,
NULL AS indkey
FROM
pg_catalog.pg_constraint
WHERE
contype IN ('f', 'c')
UNION ALL
SELECT
pc.relname,
NULL,
CASE WHEN indisprimary THEN
'p'
ELSE
'u'
END,
pi.indrelid,
indkey
FROM
pg_catalog.pg_class pc,
pg_catalog.pg_index pi
WHERE
pc.oid=pi.indexrelid
AND EXISTS (
SELECT 1 FROM pg_catalog.pg_depend d JOIN pg_catalog.pg_constraint c
ON (d.refclassid = c.tableoid AND d.refobjid = c.oid)
WHERE d.classid = pc.tableoid AND d.objid = pc.oid AND d.deptype = 'i' AND c.contype IN ('u', 'p')
)
) AS sub
WHERE relid = (SELECT oid FROM pg_catalog.pg_class WHERE relname='lime_users'
AND relnamespace = (SELECT oid FROM pg_catalog.pg_namespace
WHERE nspname='public'))
In the limesurvey/vendor/yiisoft/yii/framework/db/schema/pgsql/CPgsqlSchema.php I've found the source of this problem. Making small modification I could overcome this problem, the contype should be casted to contype::char.
I don't know if it is possible the modify the code in the yii, or find a workaround, but maybe this info will help somebody.
Cheers
Tibor
Please Log in to join the conversation.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11655
- Thank you received: 2742
1 year 2 months ago #240775
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Install error with PostgreSQL 15.2
I would recommend to submit a bug report, so this can be fixed for everyone. bugs.limesurvey.org
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Please Log in to join the conversation.