- Posts: 8
- Thank you received: 2
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Error con PostgreSQL
- matarancon
- Topic Author
- Offline
- New Member
Less
More
6 years 3 months ago #162249
by matarancon
Error con PostgreSQL was created by matarancon
Buenos días, acabo de instalar un LimeSurvey 2.72.5 con PostgreSQL 9.3 pero me da algunos problemas.
En la BD la instalación me creó todas las tablas en el esquema Public de PostgreSQL, pero cuando creo una encuesta, la aplicación me la crea en otro esquema sobre el que el usuario de conexión es propietario.
El tema es que a la hora de buscar la encuesta, si le indico un Grupo de preguntas como filtro de busqueda, me da error. (adjunto documento con capturas).
Log de la aplicación:
ERROR: relation "lime_users" does not exist at character 15
STATEMENT: SELECT *
FROM "lime_users"
...
ERROR: operator does not exist: integer ~~ unknown at character 243
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
STATEMENT: SELECT COUNT(*) FROM "lime_questions" "t" LEFT OUTER JOIN "lime_groups" "groups" ON ("t"."gid"="groups"."gid") AND ("t"."language"="groups"."language") WHERE ((((t.sid='691552') AND (t.language='es')) AND (t.parent_qid='0')) AND (groups.gid LIKE '%1%'))
...
ERROR: relation "lime_tokens_142367" already exists
STATEMENT: CREATE TABLE "lime_tokens_142367" (
"tid" serial NOT NULL PRIMARY KEY,
"participant_id" character varying (50) ,
"firstname" character varying (150) ,
"lastname" character varying (150) ,
"email" text,
"emailstatus" text,
"token" character varying (35) ,
"language" character varying (25) ,
"blacklisted" character varying (17) ,
"sent" character varying (17) DEFAULT 'N',
"remindersent" character varying (17) DEFAULT 'N',
"remindercount" integer DEFAULT 0,
"completed" character varying (17) DEFAULT 'N',
"usesleft" integer DEFAULT 1,
"validfrom" timestamp,
"validuntil" timestamp,
"mpid" integer
)
Me da la impresión de que es un Bug de la aplicación. Alguien tiene LimeSurvey con PostgreSQL y puede probarlo?
Gracias.
En la BD la instalación me creó todas las tablas en el esquema Public de PostgreSQL, pero cuando creo una encuesta, la aplicación me la crea en otro esquema sobre el que el usuario de conexión es propietario.
El tema es que a la hora de buscar la encuesta, si le indico un Grupo de preguntas como filtro de busqueda, me da error. (adjunto documento con capturas).
Log de la aplicación:
ERROR: relation "lime_users" does not exist at character 15
STATEMENT: SELECT *
FROM "lime_users"
...
ERROR: operator does not exist: integer ~~ unknown at character 243
HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
STATEMENT: SELECT COUNT(*) FROM "lime_questions" "t" LEFT OUTER JOIN "lime_groups" "groups" ON ("t"."gid"="groups"."gid") AND ("t"."language"="groups"."language") WHERE ((((t.sid='691552') AND (t.language='es')) AND (t.parent_qid='0')) AND (groups.gid LIKE '%1%'))
...
ERROR: relation "lime_tokens_142367" already exists
STATEMENT: CREATE TABLE "lime_tokens_142367" (
"tid" serial NOT NULL PRIMARY KEY,
"participant_id" character varying (50) ,
"firstname" character varying (150) ,
"lastname" character varying (150) ,
"email" text,
"emailstatus" text,
"token" character varying (35) ,
"language" character varying (25) ,
"blacklisted" character varying (17) ,
"sent" character varying (17) DEFAULT 'N',
"remindersent" character varying (17) DEFAULT 'N',
"remindercount" integer DEFAULT 0,
"completed" character varying (17) DEFAULT 'N',
"usesleft" integer DEFAULT 1,
"validfrom" timestamp,
"validuntil" timestamp,
"mpid" integer
)
Me da la impresión de que es un Bug de la aplicación. Alguien tiene LimeSurvey con PostgreSQL y puede probarlo?
Gracias.
Attachments:
The topic has been locked.
- matarancon
- Topic Author
- Offline
- New Member
Less
More
- Posts: 8
- Thank you received: 2
6 years 3 months ago #162367
by matarancon
Replied by matarancon on topic Error con PostgreSQL
Solucionado:
SOLVED
On DB:
ALTER ROLE myuser IN DATABASE dbname SET search_path = owscheme;
replace our files 'public' with 'owscheme':
limesurvey/installer/sql/create-pgsql.sql: línea 4
limesurvey/application/helpers/database_helper.php: línea 181
limesurvey/framework/db/schema/pgsql/CPgsqlSchema.php: línea 20
It´s work fine now.
SOLVED
On DB:
ALTER ROLE myuser IN DATABASE dbname SET search_path = owscheme;
replace our files 'public' with 'owscheme':
limesurvey/installer/sql/create-pgsql.sql: línea 4
limesurvey/application/helpers/database_helper.php: línea 181
limesurvey/framework/db/schema/pgsql/CPgsqlSchema.php: línea 20
It´s work fine now.
The topic has been locked.