procedure to create new users with core fixed

parent b196c2f4
......@@ -103,7 +103,7 @@ BEGIN
-- Selecciona el texto para el tablero hijo
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 LIMIT 1;
SELECT `text` INTO _grid_name FROM picto_exp WHERE id_pic = _id_pic AND lang = _lang COLLATE utf8_general_ci LIMIT 1;
-- Crea el nuevo tablero hijo
INSERT INTO grid (name, active, id_stu)
......@@ -118,8 +118,8 @@ BEGIN
-- Inserta los pictogramas correspondientes en el tablero recien creado
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 LIMIT 1;
SELECT id INTO _id_grid FROM grid WHERE name = _grid_name AND id_stu = _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 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)
VALUES (_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