Sources/Subs-Db-mysql.php 1 location
|
@@ 82-83 (lines=2) @@
|
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
// Select the database, unless told not to |
| 82 |
|
if (empty($db_options['dont_select_db']) && !@mysql_select_db($db_name, $connection) && empty($db_options['non_fatal'])) |
| 83 |
|
display_db_error(); |
| 84 |
|
|
| 85 |
|
// This makes it possible to have SMF automatically change the sql_mode and autocommit if needed. |
| 86 |
|
if (isset($mysql_set_mode) && $mysql_set_mode === true) |
Sources/Subs-Db-mysqli.php 1 location
|
@@ 88-89 (lines=2) @@
|
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
// Select the database, unless told not to |
| 88 |
|
if (empty($db_options['dont_select_db']) && !@mysqli_select_db($connection, $db_name) && empty($db_options['non_fatal'])) |
| 89 |
|
display_db_error(); |
| 90 |
|
|
| 91 |
|
// This makes it possible to have SMF automatically change the sql_mode and autocommit if needed. |
| 92 |
|
if (isset($mysql_set_mode) && $mysql_set_mode === true) |