local_data_api/resources/jdbc/__init__.py
def _fixed_to_datetime(rs: Any, col: Any) -> Optional[str]:  # pragma: no cover
    """
    jaydebeapi has a bug that can't be parsed datetime correctly.
    This workaround will be removed when the PR is merged.
    https://github.com/baztian/jaydebeapi/pull/177
    """
    java_val = rs.getTimestamp(col)
    if not java_val:
        return None
    import datetime

    d = datetime.datetime.strptime(str(java_val)[:19], "%Y-%m-%d %H:%M:%S")
    d = d.replace(microsecond=int(str(java_val.getNanos()).zfill(9)[:6]))
    return str(d)

    jaydebeapi has a bug that can't be parsed datetime correctly.
    This workaround will be removed when the PR is merged.
    https://github.com/baztian/jaydebeapi/pull/177
    
jaydebeapi has a bug that can't be parsed datetime correctly.
This workaround will be removed when the PR is merged.
jaydebeapi has a bug that can ' t be parsed datetime correctly . This workaround will be removed when the PR is merged .
def _fixed_to_datetime(rs: Any, col: Any) -> Optional[str]:  
    java_val = rs.getTimestamp(col)
    if not java_val:
        return None
    import datetime
    d = datetime.datetime.strptime(str(java_val)[:19], "%Y-%m-%d %H:%M:%S")
    d = d.replace(microsecond=int(str(java_val.getNanos()).zfill(9)[:6]))
    return str(d)
def _fixed_to_datetime ( rs : Any , col : Any ) -> Optional [ str ] : java_val = rs . getTimestamp ( col ) if not java_val : return None import datetime d = datetime . datetime . strptime ( str ( java_val ) [ : 19 ] , "%Y-%m-%d %H:%M:%S" ) d = d . replace ( microsecond = int ( str ( java_val . getNanos ( ) ) . zfill ( 9 ) [ : 6 ] ) ) return str ( d )
jaydebeapi has a bug that can't be parsed datetime correctly.
jaydebeapi has a bug that can ' t be parsed datetime correctly .
# pragma: no cover """
    jaydebeapi has a bug that can't be parsed datetime correctly.
    This workaround will be removed when the PR is merged.
    https://github.com/baztian/jaydebeapi/pull/177
    """
rs
Any
col
Any