You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-4.1/apis/core/dml/index.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ $DB->get_record_sql(
95
95
96
96
Some methods accept the <tt>$strictness</tt> parameter affecting the method behaviour. Supported modes are specified using the constants:
97
97
98
-
- <tt>MUST_EXIST</tt> - In this mode, the requested record must exist and must be unique. An exception will be thrown if no record is found or multiple matching records are found.
98
+
- <tt>MUST_EXIST</tt> - In this mode, the requested record must exist and must be unique. An exception `dml_missing_record_exception`will be thrown if no record is found or`dml_multiple_records_exception` if multiple matching records are found.
99
99
- <tt>IGNORE_MISSING</tt> - In this mode, a missing record is not an error. False boolean is returned if the requested record is not found. If more records are found, a debugging message is displayed.
100
100
- <tt>IGNORE_MULTIPLE</tt> - This is not a recommended mode. The function will silently ignore multiple records found and will return just the first one of them.
101
101
@@ -648,7 +648,7 @@ try {
648
648
// Assuming the both inserts work, we get to the following line.
649
649
$transaction->allow_commit();
650
650
651
-
} catch(Exception $e) {
651
+
} catch(Exception $e) {
652
652
$transaction->rollback($e);
653
653
}
654
654
```
@@ -873,7 +873,7 @@ public function sql_compare_text(
Copy file name to clipboardExpand all lines: versioned_docs/version-4.3/apis/core/dml/index.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ $DB->get_record_sql(
95
95
96
96
Some methods accept the <tt>$strictness</tt> parameter affecting the method behaviour. Supported modes are specified using the constants:
97
97
98
-
- <tt>MUST_EXIST</tt> - In this mode, the requested record must exist and must be unique. An exception will be thrown if no record is found or multiple matching records are found.
98
+
- <tt>MUST_EXIST</tt> - In this mode, the requested record must exist and must be unique. An exception `dml_missing_record_exception`will be thrown if no record is found or`dml_multiple_records_exception` if multiple matching records are found.
99
99
- <tt>IGNORE_MISSING</tt> - In this mode, a missing record is not an error. False boolean is returned if the requested record is not found. If more records are found, a debugging message is displayed.
100
100
- <tt>IGNORE_MULTIPLE</tt> - This is not a recommended mode. The function will silently ignore multiple records found and will return just the first one of them.
101
101
@@ -648,7 +648,7 @@ try {
648
648
// Assuming the both inserts work, we get to the following line.
649
649
$transaction->allow_commit();
650
650
651
-
} catch(Exception $e) {
651
+
} catch(Exception $e) {
652
652
$transaction->rollback($e);
653
653
}
654
654
```
@@ -873,7 +873,7 @@ public function sql_compare_text(
Copy file name to clipboardExpand all lines: versioned_docs/version-4.4/apis/core/dml/index.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ $DB->get_record_sql(
95
95
96
96
Some methods accept the <tt>$strictness</tt> parameter affecting the method behaviour. Supported modes are specified using the constants:
97
97
98
-
- <tt>MUST_EXIST</tt> - In this mode, the requested record must exist and must be unique. An exception will be thrown if no record is found or multiple matching records are found.
98
+
- <tt>MUST_EXIST</tt> - In this mode, the requested record must exist and must be unique. An exception `dml_missing_record_exception`will be thrown if no record is found or`dml_multiple_records_exception` if multiple matching records are found.
99
99
- <tt>IGNORE_MISSING</tt> - In this mode, a missing record is not an error. False boolean is returned if the requested record is not found. If more records are found, a debugging message is displayed.
100
100
- <tt>IGNORE_MULTIPLE</tt> - This is not a recommended mode. The function will silently ignore multiple records found and will return just the first one of them.
101
101
@@ -648,7 +648,7 @@ try {
648
648
// Assuming the both inserts work, we get to the following line.
0 commit comments