summaryrefslogtreecommitdiffstats
path: root/system/database/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'system/database/drivers')
-rw-r--r--system/database/drivers/mysql/mysql_utility.php8
-rw-r--r--system/database/drivers/mysqli/mysqli_utility.php8
2 files changed, 8 insertions, 8 deletions
diff --git a/system/database/drivers/mysql/mysql_utility.php b/system/database/drivers/mysql/mysql_utility.php
index e2de82d0b..f118033dc 100644
--- a/system/database/drivers/mysql/mysql_utility.php
+++ b/system/database/drivers/mysql/mysql_utility.php
@@ -77,8 +77,8 @@ class CI_DB_mysql_utility extends CI_DB_utility {
// Build the output
$output = '';
- // Do we need to include a statement to disable FK checks?
- if ($fk_checks === FALSE)
+ // Do we need to include a statement to disable foreign key checks?
+ if ($foreign_key_checks === FALSE)
{
$output .= "SET foreign_key_checks = 0;".$newline;
}
@@ -188,8 +188,8 @@ class CI_DB_mysql_utility extends CI_DB_utility {
$output .= $newline.$newline;
}
- // Do we need to include a statement to re-enable FK checks?
- if ($fk_checks === FALSE)
+ // Do we need to include a statement to re-enable foreign key checks?
+ if ($foreign_key_checks === FALSE)
{
$output .= "SET foreign_key_checks = 1;".$newline;
}
diff --git a/system/database/drivers/mysqli/mysqli_utility.php b/system/database/drivers/mysqli/mysqli_utility.php
index ff4949046..2edf38cf5 100644
--- a/system/database/drivers/mysqli/mysqli_utility.php
+++ b/system/database/drivers/mysqli/mysqli_utility.php
@@ -77,8 +77,8 @@ class CI_DB_mysqli_utility extends CI_DB_utility {
// Build the output
$output = '';
- // Do we need to include a statement to disable FK checks?
- if ($fk_checks === FALSE)
+ // Do we need to include a statement to disable foreign key checks?
+ if ($foreign_key_checks === FALSE)
{
$output .= "SET foreign_key_checks = 0;".$newline;
}
@@ -188,8 +188,8 @@ class CI_DB_mysqli_utility extends CI_DB_utility {
$output .= $newline.$newline;
}
- // Do we need to include a statement to re-enable FK checks?
- if ($fk_checks === FALSE)
+ // Do we need to include a statement to re-enable foreign key checks?
+ if ($foreign_key_checks === FALSE)
{
$output .= "SET foreign_key_checks = 1;".$newline;
}