mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Add return description
This commit is contained in:
parent
e18029064c
commit
c5ad005475
3 changed files with 9 additions and 6 deletions
|
@ -593,10 +593,11 @@ class Sqlite extends DboSource {
|
|||
|
||||
/**
|
||||
* Returns a locking hint for the given mode.
|
||||
*
|
||||
* Sqlite Datasource doesn't support row-level locking.
|
||||
*
|
||||
* @param mixed $mode Lock mode
|
||||
* @return string|null
|
||||
* @return string|null Null
|
||||
*/
|
||||
public function getLockingHint($mode) {
|
||||
return null;
|
||||
|
|
|
@ -819,10 +819,11 @@ class Sqlserver extends DboSource {
|
|||
|
||||
/**
|
||||
* Returns a locking hint for the given mode.
|
||||
* Currently, this method only returns WITH (UPDLOCK) when the mode is true.
|
||||
*
|
||||
* Currently, this method only returns WITH (UPDLOCK) when the mode is set to true.
|
||||
*
|
||||
* @param mixed $mode Lock mode
|
||||
* @return string|null
|
||||
* @return string|null WITH (UPDLOCK) clause or null
|
||||
*/
|
||||
public function getLockingHint($mode) {
|
||||
if ($mode !== true) {
|
||||
|
|
|
@ -3141,7 +3141,7 @@ class DboSource extends DataSource {
|
|||
* @param mixed $fields Array or string of conditions
|
||||
* @param bool $quoteValues If true, values should be quoted
|
||||
* @param Model $Model A reference to the Model instance making the query
|
||||
* @return string|null
|
||||
* @return string|null HAVING clause or null
|
||||
*/
|
||||
public function having($fields, $quoteValues = true, Model $Model = null) {
|
||||
if (!$fields) {
|
||||
|
@ -3152,10 +3152,11 @@ class DboSource extends DataSource {
|
|||
|
||||
/**
|
||||
* Returns a locking hint for the given mode.
|
||||
* Currently, this method only returns FOR UPDATE when the mode is true.
|
||||
*
|
||||
* Currently, this method only returns FOR UPDATE when the mode is set to true.
|
||||
*
|
||||
* @param mixed $mode Lock mode
|
||||
* @return string|null
|
||||
* @return string|null FOR UPDATE clause or null
|
||||
*/
|
||||
public function getLockingHint($mode) {
|
||||
if ($mode !== true) {
|
||||
|
|
Loading…
Add table
Reference in a new issue