aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2013-12-08 22:07:36 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2013-12-08 22:07:36 -0500
commitb361e24be745b6aeaba5b4bf4381c4e0be7100fc (patch)
tree9509680d19006ec2514b380128472890674faf2c
parent26771288f54955a64de7281c9b372bea7bfe210a (diff)
downloadGradeBook-b361e24be745b6aeaba5b4bf4381c4e0be7100fc.tar.gz
GradeBook-b361e24be745b6aeaba5b4bf4381c4e0be7100fc.zip
Delete column wrapped in end/begin transaction
-rwxr-xr-xGradeBook_lib.tcl2
1 files changed, 2 insertions, 0 deletions
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl
index 88d61e1..f5c1a36 100755
--- a/GradeBook_lib.tcl
+++ b/GradeBook_lib.tcl
@@ -371,7 +371,9 @@ proc calculteWeightedTotals { } {
set flag_delete_CategoryWeightedTolal true
}
if { $flag_delete_CategoryWeightedTolal && ([doesColumnExists $CategoryWeightedTolalName GradesTable]) } {
+ end_db_transaction
DeleteColumnFromTable GradesTable $CategoryWeightedTolalName
+ begin_db_transaction
}
}