Back port in 2.6.x parametrized sql queries