protected getPrimaryKeys ( $src ) : array | ||
return | array | primary key field names. |
protected function getPrimaryKeys($src)
{
$matches = array();
if (preg_match('/PRIMARY\\s+KEY\\s+\\(([^\\)]+)\\)/i', $src, $matches)) {
return preg_split('/,\\s+/', $matches[1]);
}
return array();
}