basecurve: output line of sql to test without recompile.