Skip to content

Commit

Permalink
Fix casing
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Aug 27, 2022
1 parent 18b0a7b commit f86ec04
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions DuckDB.NET.Data/DuckDBDataReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,20 +68,20 @@ public override string GetDataTypeName(int ordinal)

public override DateTime GetDateTime(int ordinal)
{
var timestampStruct = NativeMethods.Types.DuckDbValueTimestamp(queryResult, ordinal, currentRow);
var timestampStruct = NativeMethods.Types.DuckDBValueTimestamp(queryResult, ordinal, currentRow);
var timestamp = NativeMethods.DateTime.DuckDBFromTimestamp(timestampStruct);
return timestamp.ToDateTime();
}

public DuckDBDateOnly GetDateOnly(int ordinal)
{
var date = NativeMethods.Types.DuckDbValueDate(queryResult, ordinal, currentRow);
var date = NativeMethods.Types.DuckDBValueDate(queryResult, ordinal, currentRow);
return NativeMethods.DateTime.DuckDBFromDate(date);
}

public DuckDBTimeOnly GetTimeOnly(int ordinal)
{
var time = NativeMethods.Types.DuckDbValueTime(queryResult, ordinal, currentRow);
var time = NativeMethods.Types.DuckDBValueTime(queryResult, ordinal, currentRow);
return NativeMethods.DateTime.DuckDBFromTime(time);
}

Expand Down
6 changes: 3 additions & 3 deletions DuckDB.NET/NativeMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ public static class Types
public static extern DuckDBBlob DuckDBValueBlob([In, Out] DuckDBResult result, long col, long row);

[DllImport(DuckDbLibrary, CallingConvention = CallingConvention.Cdecl, EntryPoint = "duckdb_value_date")]
public static extern DuckDBDate DuckDbValueDate([In, Out] DuckDBResult result, long col, long row);
public static extern DuckDBDate DuckDBValueDate([In, Out] DuckDBResult result, long col, long row);

[DllImport(DuckDbLibrary, CallingConvention = CallingConvention.Cdecl, EntryPoint = "duckdb_value_time")]
public static extern DuckDBTime DuckDbValueTime([In, Out] DuckDBResult result, long col, long row);
public static extern DuckDBTime DuckDBValueTime([In, Out] DuckDBResult result, long col, long row);

[DllImport(DuckDbLibrary, CallingConvention = CallingConvention.Cdecl, EntryPoint = "duckdb_value_timestamp")]
public static extern DuckDBTimestampStruct DuckDbValueTimestamp([In, Out] DuckDBResult result, long col, long row);
public static extern DuckDBTimestampStruct DuckDBValueTimestamp([In, Out] DuckDBResult result, long col, long row);
}

public static class PreparedStatements
Expand Down

0 comments on commit f86ec04

Please sign in to comment.