Added a Database::buildStringCast and use on int/string join
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 25 Jun 2016 20:24:42 +0000 (22:24 +0200)
committerAaron Schulz <aschulz@wikimedia.org>
Sat, 3 Sep 2016 23:59:39 +0000 (23:59 +0000)
commit90e9fc296a9a450ecf270614eb8e3b87c5902485
treee6c8c75da8436b82a88dbc9ec7c9377c05bc31c4
parentad1979423e82481380ee313b7fc3d0cb2ee4bd85
Added a Database::buildStringCast and use on int/string join

The database specific sql is untested, but sql is taken from docs

mssql - knows about impilict casts -
https://technet.microsoft.com/en-us/library/ms191530(v=sql.105).aspx
mysql - knows about impilict casts
oracle - https://docs.oracle.com/javadb/10.8.3.0/ref/rrefsqlj33562.html
postgresql -
https://www.postgresql.org/docs/9.2/static/sql-expressions.html#SQL-SYNTAX-TYPE-CASTS
sqlite - http://www.sqlite.org/lang_expr.html

Bug: T69065
Change-Id: I3a83276dc65aae58124460af1810d37dff52e943
includes/db/Database.php
includes/db/DatabaseOracle.php
includes/db/DatabasePostgres.php
includes/db/DatabaseSqlite.php
includes/specials/SpecialProtectedpages.php