Closed JasonPierce closed 7 years ago
@tyschroed 🎁
Bless your heart! On Sun, Oct 22, 2017 at 6:18 PM Jason Pierce notifications@github.com wrote:
@tyschroed https://github.com/tyschroed 🎁
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/2Toad/node-teradata/issues/26#issuecomment-338524652, or mute the thread https://github.com/notifications/unsubscribe-auth/AAweVjLGJP_7-VFxHj6A_T918j-CB4Zkks5su-lIgaJpZM4QBBCz .
Currently prepared statements use the Teradata syntax of anonymous parameters referenced by index:
This proposed enhancement adds the ability to name parameters (similar to Sequelize's named replacements):
Acceptance Criteria
:
writePreparedStatement
supports named parametersreadPreparedStatement
supports named parameterscreatePreparedStatementParam
accepts a string as it's first parameter (internally placing it in named parameter mode)createPreparedStatementParam
cannot find a matching named parameter within the statementparams
array (ofwritePreparedStatement
andreadPreparedStatement
) contains named parameters with duplicate namesparams
array (ofwritePreparedStatement
andreadPreparedStatement
) contains both anonymous and named parameters