Bug fix for DB\IO returning detection

it was still coded with old one line and not taking in possible
line breaks in the returning code part
This commit is contained in:
Clemens Schwaighofer
2023-04-03 15:02:39 +09:00
parent 959240b0fa
commit b4b33d6873
2 changed files with 25 additions and 3 deletions

View File

@@ -280,7 +280,7 @@ class IO
/** @var string default hash type */
public const ERROR_HASH_TYPE = 'adler32';
/** @var string regex to get returning with matches at position 1 */
public const REGEX_RETURNING = '/\s+returning\s+(.+?);?$/i';
public const REGEX_RETURNING = '/\s+returning\s+(.+\s*(?:.+\s*)+);?$/i';
// recommend to set private/protected and only allow setting via method
// can bet set from outside