microsoft / mssql-jdbc
Showing 1 of 1 files from the diff.

@@ -2469,6 +2469,16 @@
Loading
2469 2469
                        else
2470 2470
                            tdsWriter.writeByte((byte) 0x05);
2471 2471
                        if (colValue instanceof String) {
2472 +
                            /*
2473 +
                             * if colValue is an instance of String, this means the data is coming from a CSV file.
2474 +
                             * Time string is expected to come in with this pattern: hh:mm:ss[.nnnnnnn]
2475 +
                             * First, look for the '.' character to determine if the String has the optional nanoseconds
2476 +
                             * component.
2477 +
                             * Next, create a java.sql.Time instance with the hh:mm:ss part we extracted, then set that
2478 +
                             * time as the timestamp's time.
2479 +
                             * Then, add the nanoseconds (optional, 0 if not provided) to the timestamp value.
2480 +
                             * Finally, provide the timestamp value to writeTime method.
2481 +
                             */
2472 2482
                            java.sql.Timestamp ts = new java.sql.Timestamp(0);
2473 2483
                            int nanos = 0;
2474 2484
                            int decimalIndex = ((String) colValue).indexOf('.');
Files Complexity Coverage
src/main/java 42.25% 54.52%
Project Totals (133 files) 42.25% 54.52%
1
codecov:
2
  branch: dev
3
  notify:
4
    require_ci_to_pass: false
5
  coverage:
6
  	range: "10...100"
7
  comment:
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading