/** Test what happens if the name of a parameter is a reserved word. It must be quoted (double-ticks). */
@Test public void testCase3281NamedVariablesReservedWords() {
StoredProcedure storedQuery = new StoredProcedure();
storedQuery.setDisplayNamedParameters(true);
storedQuery.setProcedureName("proc1"); //$NON-NLS-1$
SPParameter param1 = new SPParameter(1, new Constant("paramValue1")); //$NON-NLS-1$
param1.setName("in"); //$NON-NLS-1$ //<---RESERVED WORD
param1.setParameterType(ParameterInfo.IN);
storedQuery.setParameter(param1);
SPParameter param2 = new SPParameter(2, new Constant("paramValue2")); //$NON-NLS-1$
param2.setName("in2"); //$NON-NLS-1$
param2.setParameterType(ParameterInfo.IN);
storedQuery.setParameter(param2);
helpTest("Exec proc1(\"in\" = 'paramValue1', in2 = 'paramValue2')", "EXEC proc1(\"in\" => 'paramValue1', in2 => 'paramValue2')", storedQuery); //$NON-NLS-1$ //$NON-NLS-2$
helpTest("execute proc1(\"in\" = 'paramValue1', in2 = 'paramValue2')", "EXEC proc1(\"in\" => 'paramValue1', in2 => 'paramValue2')", storedQuery); //$NON-NLS-1$ //$NON-NLS-2$
}