diff --git a/report/img/transaction2_2.png b/report/img/transaction2_2.png index 809434a..71f7a90 100644 Binary files a/report/img/transaction2_2.png and b/report/img/transaction2_2.png differ diff --git a/report/img/transaction3_1.png b/report/img/transaction3_1.png index 533f39e..d17967f 100644 Binary files a/report/img/transaction3_1.png and b/report/img/transaction3_1.png differ diff --git a/report/img/transaction3_2.png b/report/img/transaction3_2.png index 4140f32..36f294c 100644 Binary files a/report/img/transaction3_2.png and b/report/img/transaction3_2.png differ diff --git a/report/img/transaction3_3.png b/report/img/transaction3_3.png index 9fb7080..2cd79bc 100644 Binary files a/report/img/transaction3_3.png and b/report/img/transaction3_3.png differ diff --git a/report/report.tex b/report/report.tex index 4f9c251..b2bea27 100644 --- a/report/report.tex +++ b/report/report.tex @@ -711,14 +711,14 @@ $$; $t_1$ & \specialcell{ Изменение имени судьи с \texttt{id\_judge = 201}\\ \\ - % \texttt{select id\_judge, name from judge}\\ - % \texttt{where id\_judge = 201;}\\ + \texttt{select id\_judge, name from judge}\\ + \texttt{where id\_judge = 201;}\\ \texttt{update judge set name = 'Софа'}\\ \texttt{where id\_judge = 201;}\\ - % \texttt{select id\_judge, name from judge}\\ - % \texttt{where id\_judge = 201;}\\ + \texttt{select id\_judge, name from judge}\\ + \texttt{where id\_judge = 201;}\\ } - \includegraphics[width=1\linewidth]{img/transaction1_2.png} + \includegraphics[width=1\linewidth]{img/transaction1_1.png} & \\ \hline @@ -753,7 +753,7 @@ $$; В таблице~\ref{tbl:unrepeatable_read} представлены транзакции, на примере которых демонстрируется наличие артефакта <<Неповторяемое чтение>>. -\newpage +% \newpage \begin{table}[h!] \centering % \addtocounter{table}{-1} @@ -794,15 +794,35 @@ $$; & \specialcell{ Изменение имени судьи с \texttt{id\_judge = 201} \\ - и фиксация транзакции\\ \\ + и фиксация транзакции\\ + \texttt{select id\_judge, name from judge}\\ + \texttt{where id\_judge = 201;}\\ \texttt{update judge set name = 'Софа'}\\ \texttt{where id\_judge = 201;}\\ + \texttt{select id\_judge, name from judge}\\ + \texttt{where id\_judge = 201;}\\ \texttt{commit;}\\ } - \includegraphics[width=1\linewidth]{img/transaction2_2.png} + \includegraphics[width=0.9\linewidth]{img/transaction2_2.png} \\ \hline + \end{tabularx} +\end{table} + + +\newpage +\begin{table}[h!] + \centering + \addtocounter{table}{-1} + \caption{Транзакции для демонстрации наличия артефакта <<Неповторяемое чтение>> (продолжение).} + \label{tbl:unrepeatable_read} + \footnotesize + \begin{tabularx}{\textwidth}{|c|X|X|} + \hline + t & Транзакция 1 & Транзакция 2 \\ + \hline + $t_3$ & \specialcell{ Получение имени судьи с \texttt{id\_judge = 201}\\ @@ -821,7 +841,7 @@ $$; В таблице~\ref{tbl:fantom} представлены транзакции, на примере которых демонстрируется наличие артефакта <<Фантомы>>. -\newpage +% \newpage \begin{table}[h!] \centering % \addtocounter{table}{-1} @@ -858,14 +878,34 @@ $$; \\ \hline + \end{tabularx} +\end{table} + +\newpage +\begin{table}[h!] + \centering + \addtocounter{table}{-1} + \caption{Транзакции для демонстрации наличия артефакта <<Фантомы>> (продолжение).} + \label{tbl:fantom} + \footnotesize + \begin{tabularx}{\textwidth}{|c|X|X|} + \hline + t & Транзакция 1 & Транзакция 2 \\ + \hline + + $t_2$ & & \specialcell{ Добавление нового судьи и фиксация \\ транзакции\\ \\ + \texttt{select id\_judge, name from judge}\\ + \texttt{where id\_judge >= 250;}\\ \texttt{insert into judge (name, surname,}\\ \texttt{patronymic, category)}\\ - \texttt{values ('анна', 'иванова', 'петровна',}\\ - \texttt{'высшая');}\\ + \texttt{values ('вика', 'иванова', 'петровна',}\\ + \texttt{'высшая');}\\ + \texttt{select id\_judge, name from judge}\\ + \texttt{where id\_judge >= 250;}\\ \texttt{commit;}\\ } \includegraphics[width=1\linewidth]{img/transaction3_2.png} @@ -886,6 +926,7 @@ $$; \end{tabularx} \end{table} +\newpage \section*{Заключение} \addcontentsline{toc}{section}{Заключение} В ходе освоения данного курса было выполнено пять лабораторных работ: