DB IO rename dbGetQueryHash to dbBuildQueryHash, store last query hash

This commit is contained in:
Clemens Schwaighofer
2025-04-09 11:40:07 +09:00
parent 2e101d55d2
commit 1c66ee34a1
4 changed files with 43 additions and 29 deletions

View File

@@ -978,7 +978,7 @@ class PgSQL implements Interface\SqlFunctions
}
/**
* Get the all the $ params, unique list
* Get the all the $ params, as a unique list
*
* @param string $query
* @return array<string>
@@ -1004,17 +1004,6 @@ class PgSQL implements Interface\SqlFunctions
);
return array_unique(array_filter($matches[ConvertPlaceholder::MATCHING_POS]));
}
/**
* Count placeholder queries. $ only
*
* @param string $query
* @return int
*/
public function __dbCountQueryParams(string $query): int
{
return count($this->__dbGetQueryParams($query));
}
}
// __END__