Skip to content

Passing datetime2/date via ISQLServerBulkRecord is throwing exception #556

Open
@SubashRoul

Description

@SubashRoul

Driver version or jar name

mssql-jdbc-6.2.1.jre8.jar

Java/JVM version

java version "1.8.0_152"
Java(TM) SE Runtime Environment (build 1.8.0_152-b16)

Problem description

For Azure SQL Data Warehouse, passing datetime2 via ISQLServerBulkRecord throws Received an invalid column length from the bcp client for colid modify_time. Same error for date type columns.

I have tried the example codes given in issue #161 with datetime2 and date columns.

For datetime2, I am passing the following parameters.
columnType : java.sql.Types.TIMESTAMP
precision : 0
scale : 0

For date,
columnType : java.sql.Types.DATE
precision : 0
scale : 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    BacklogThe topic in question has been recognized and added to development backlog

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions