Quote column name aliases
authorRyan Schmidt <skizzerz@skizzerz.net>
Mon, 2 May 2016 18:04:47 +0000 (13:04 -0500)
committerLegoktm <legoktm.wikipedia@gmail.com>
Mon, 2 May 2016 21:22:59 +0000 (21:22 +0000)
commiteaa91d7abf293d021cebe219c8140ac20686e8fb
tree713a5f4a246ab8aa400b44788991a1df4ac78c1c
parente3c97b32f634254fa3aae50d417fec15f0bf0c2a
Quote column name aliases

Sometimes, a column name alias is chosen that is a reserved word or is
otherwise invalid (such as an alias named "user" on postgres or mssql).
Let's unconditionally quote the alias so that no matter what the user
specifies, it will not cause the query to error out.

Bug: T118973
Change-Id: If3ea7324980355e78afcdb3bf2596d23bb96412d
includes/db/Database.php