\r
Date Dev Ver Change details\r
---------- --- ----- --------------\r
+2008-01-07 DP 1.9.0 Add support for direct debugging of functions with\r
+ variadic parameters.\r
2008-01-05 GL 1.9.0 Add -S and -Sc command line options to open a server\r
status window\r
2009-01-01 DP 1.9.0 Add support for the many new node types in Postgres 8.4\r
<p>When entering parameter values, type the value into the appropriate cell\r
on the grid, or, leave the cell empty to represent NULL, enter '' (two single \r
quotes) to represent an empty string, or to enter a literal string consisting \r
-of just two single quotes, enter \'\'.</p>\r
+of just two single quotes, enter \'\'. PostgreSQL 8.4 and above supports\r
+variadic function parameters. These may be entered as a comma-delimited list\r
+of values, quoted and/or cast as required.</p>\r
\r
<p>Once the debugger session has started you can step through the code using\r
the menu options, keyboard shortcuts or toolbar buttons. Breakpoints may be \r
else if (m_value == wxT("\\'\\'"))
return (wxT("'\\'\\''"));
else if (m_value[0] == '\'' )
- return(m_value);
+ return (m_value);
else
return(wxString(wxT("'") + m_value + wxT("'")));
}
{
grdParams->AppendRows( 1 );
grdParams->SetCellValue( i, COL_NAME, arg.getName());
- grdParams->SetCellValue( i, COL_TYPE, arg.getType());
+
+ // Make it obvious which are variadics
+ if (arg.getMode() != wxT( "v" ))
+ grdParams->SetCellValue( i, COL_TYPE, arg.getType());
+ else
+ grdParams->SetCellValue( i, COL_TYPE, arg.getType() + wxT(" VARIADIC"));
+
grdParams->SetCellValue( i, COL_VALUE, arg.getValue());
grdParams->SetReadOnly( i, COL_NAME, true );
if (!m_targetInfo->getIsFunction() || m_targetInfo->getLanguage() == wxT("edbspl"))
query.Append( wxT("NULL::") + arg.getType() + wxT(", "));
}
- else
+ else if(arg.getMode() == wxT("v"))
+ query.Append( arg.getValue() + wxT(", "));
+ else
query.Append( arg.quoteValue() + wxT("::") + arg.getType() + wxT(", "));
+
}
if (query.EndsWith(wxT(", ")))