Commit 547176e7 authored by mitshel's avatar mitshel
Browse files

В хранимой процедуре sp_mark_dbl в преобразовании CAST тип INT заменен на UNSIGNED

т.к. видимо в некторых реализациях mysql CAST не воспринимает тип INT
parent 2490d333
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -168,7 +168,7 @@ BEGIN
          WHILE prev<>current DO
              set prev=current;
              set idx=idx+1;
              SELECT CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(ids,':',idx),':',-1) as INT) into current;
              SELECT CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(ids,':',idx),':',-1) as UNSIGNED) into current;
              IF prev<>current THEN
                 UPDATE books SET doublicat=orig_id where book_id=current;
                 if orig_id=0 THEN SET orig_id=current; END IF;
+1 −1
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ BEGIN
          WHILE prev<>current DO
              set prev=current;
              set idx=idx+1;
              SELECT CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(ids,':',idx),':',-1) as INT) into current;
              SELECT CAST(SUBSTRING_INDEX(SUBSTRING_INDEX(ids,':',idx),':',-1) as UNSIGNED) into current;
              IF prev<>current THEN
                 UPDATE books SET doublicat=orig_id where book_id=current;
                 if orig_id=0 THEN SET orig_id=current; END IF;