Allow undefined bind parameters (#38496)

This commit is contained in:
Connor Fitzgerald 2019-09-25 18:54:00 +01:00 committed by Michael Crane
parent 48229011b8
commit 1607336d36
2 changed files with 4 additions and 2 deletions

View File

@ -578,7 +578,7 @@ declare namespace OracleDB {
*
* @see https://oracle.github.io/node-oracledb/doc/api.html#executebindParams
*/
type BindParameters = Record<string, BindParameter | string | number | Date | DBObject | Buffer | null> | BindParameter[] | any[];
type BindParameters = Record<string, BindParameter | string | number | Date | DBObject | Buffer | null | undefined> | BindParameter[] | any[];
interface CloseConnectionOptions {
/**

View File

@ -143,7 +143,9 @@ const testResultSet = async (connection: oracledb.Connection): Promise<void> =>
SELECT 2 FROM DUAL
UNION
SELECT 3 FROM DUAL`,
{},
{
test: undefined,
},
{
resultSet: true,
},