Changeset: d460351496d9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d460351496d9
Modified Files:
        sql/backends/monet5/vaults/csv/csv.c
Branch: Mar2025
Log Message:

Correcting logic for detecting timestamp, the date part must be 10 characters 
(YYYY-MM-DD) not 5, and time part should start at 11.


diffs (12 lines):

diff --git a/sql/backends/monet5/vaults/csv/csv.c 
b/sql/backends/monet5/vaults/csv/csv.c
--- a/sql/backends/monet5/vaults/csv/csv.c
+++ b/sql/backends/monet5/vaults/csv/csv.c
@@ -264,7 +264,7 @@ detect_timestamp(const char *s, const ch
        if ((e-s) != 16)
                return false;
        /* DATE TIME */
-       if (detect_date(s, s+5) && detect_time(s+6, e))
+       if (detect_date(s, s+10) && detect_time(s+11, e))
                return true;
        return false;
 }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to