cakephp2-php8/lib/Cake/Model/Datasource
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
..
Database Added negative lookahead 2015-06-25 22:21:38 -04:00
Session Ignore counter cache also 2015-01-23 08:30:34 +00:00
CakeSession.php Merge branch '2.6' into 2.7 2015-04-20 15:42:54 -04:00
DataSource.php Wording correction. 2014-11-05 13:14:45 +01:00
DboSource.php Merge branch '2.6' into 2.7 2015-05-28 19:34:59 -04:00