trigger fixed

parent e350dd89
/home/ubuntu/pictogram/sails/logs/access.json /home/ubuntu/pictogram/sails/logs/error.json /home/ubuntu/pictogram/sails/logs/debug.json /home/ubuntu/pictogram/sails/logs/silly.json /home/ubuntu/pictogram/sails/logs/info.json { /home/ubuntu/pictogram/sails/logs/access.json /home/ubuntu/pictogram/sails/logs/error.json /home/ubuntu/pictogram/sails/logs/debug.json /home/ubuntu/pictogram/sails/logs/silly.json /home/ubuntu/pictogram/sails/logs/info.json {
size 4M size 1k
rotate 7 rotate 7
dateext dateext
mail amontejo@ujaen.es mail amontejo@ujaen.es
......
...@@ -103,7 +103,7 @@ BEGIN ...@@ -103,7 +103,7 @@ BEGIN
-- Selecciona el texto para el tablero hijo -- Selecciona el texto para el tablero hijo
SELECT lang INTO _lang FROM student WHERE id = _id_stu LIMIT 1; SELECT lang INTO _lang FROM student WHERE id = _id_stu LIMIT 1;
SELECT `text` INTO _grid_name FROM picto_exp WHERE id_pic = _id_pic AND lang = _lang COLLATE utf8_general_ci LIMIT 1; SELECT `text` INTO _grid_name FROM picto_exp WHERE id_pic = _id_pic AND lang = _lang COLLATE utf8_unicode_ci LIMIT 1;
-- Crea el nuevo tablero hijo -- Crea el nuevo tablero hijo
INSERT INTO grid (name, active, id_stu) INSERT INTO grid (name, active, id_stu)
...@@ -118,7 +118,7 @@ BEGIN ...@@ -118,7 +118,7 @@ BEGIN
-- Inserta los pictogramas correspondientes en el tablero recien creado -- Inserta los pictogramas correspondientes en el tablero recien creado
SELECT lang INTO _lang FROM student WHERE id = _id_stu LIMIT 1; SELECT lang INTO _lang FROM student WHERE id = _id_stu LIMIT 1;
SELECT `text` INTO _grid_name FROM picto_exp WHERE id_pic = _id_cat_pic AND lang = _lang COLLATE utf8_general_ci LIMIT 1; SELECT `text` INTO _grid_name FROM picto_exp WHERE id_pic = _id_cat_pic AND lang = _lang COLLATE utf8_unicode_ci LIMIT 1;
SELECT id INTO _id_grid FROM grid WHERE name = _grid_name COLLATE utf8_general_ci AND id_stu = _id_stu LIMIT 1; SELECT id INTO _id_grid FROM grid WHERE name = _grid_name COLLATE utf8_general_ci AND id_stu = _id_stu LIMIT 1;
INSERT INTO stu_picto (id_stu, id_pic, attributes, id_grid) INSERT INTO stu_picto (id_stu, id_pic, attributes, id_grid)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment