fix #1713

better sql -with parameters- fails ?