cakephp2-php8/lib/Cake/Model/Datasource/Database
Lawrence Barsanti 0b28c2e839 Added negative lookahead
It is possible to have multiple occurrences of 'as' in a field name.
Use the last occurrence of 'as' when extracting field name.

Tested with following examples:
"WeldCheck"."weld_id"
count(*) as WeldCheck__num_measurements
count(case decision when 2 then 1 else null end) as
WeldCheck__num_failures
avg(cast (WeldMeasurement.surface_indentation as bigint)) as
WeldCheck__avg_indentation
avg(cast (WeldMeasurement.circle_diameter as bigint)) as
WeldCheck__avg_diameter
2015-06-25 22:21:38 -04:00
..
Mysql.php Fix strict error with 2.6 code. 2015-01-19 21:43:14 -05:00
Postgres.php Fix greedy regex operators in Postgres driver. 2015-06-24 23:39:26 -04:00
Sqlite.php Added negative lookahead 2015-06-25 22:21:38 -04:00
Sqlserver.php Prevent NULL value on NOT NULL column when value is an empty string (MySQL) 2015-01-05 12:04:24 -05:00