Skip to content

Commit

Permalink
fix #644
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxiaoying committed Jun 18, 2024
1 parent 370c430 commit 1898328
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion connectorx-python/connectorx/tests/test_oracle.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def oracle_url() -> str:
@pytest.mark.skipif(
not os.environ.get("ORACLE_URL"), reason="Test oracle only when `ORACLE_URL` is set"
)
def test_on_non_select(oracle_url: str) -> None:
def test_oracle_on_non_select(oracle_url: str) -> None:
query = "CREATE TABLE non_select(id INTEGER NOT NULL)"
read_sql(oracle_url, query)

Expand Down
6 changes: 3 additions & 3 deletions connectorx/src/transports/oracle_arrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ impl_transport!(
{ Char[String] => LargeUtf8[String] | conversion none }
{ NVarChar[String] => LargeUtf8[String] | conversion none }
{ NChar[String] => LargeUtf8[String] | conversion none }
{ Date[NaiveDateTime] => Date64[NaiveDateTime] | conversion auto }
{ Timestamp[NaiveDateTime] => Date64Micro[NaiveDateTimeWrapperMicro] | conversion option }
{ TimestampNano[NaiveDateTime] => Date64[NaiveDateTime] | conversion none }
{ Date[NaiveDateTime] => Date64Micro[NaiveDateTimeWrapperMicro] | conversion option }
{ Timestamp[NaiveDateTime] => Date64Micro[NaiveDateTimeWrapperMicro] | conversion none }
{ TimestampNano[NaiveDateTime] => Date64[NaiveDateTime] | conversion auto }
{ TimestampTz[DateTime<Utc>] => DateTimeTz[DateTimeWrapperMicro] | conversion option }
{ TimestampTzNano[DateTime<Utc>] => DateTimeTz[DateTime<Utc>] | conversion auto }
}
Expand Down
6 changes: 3 additions & 3 deletions connectorx/src/transports/oracle_arrow2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ impl_transport!(
{ Char[String] => LargeUtf8[String] | conversion none }
{ NVarChar[String] => LargeUtf8[String] | conversion none }
{ NChar[String] => LargeUtf8[String] | conversion none }
{ Date[NaiveDateTime] => Date64[NaiveDateTime] | conversion auto }
{ Timestamp[NaiveDateTime] => Date64Micro[NaiveDateTimeWrapperMicro] | conversion option }
{ TimestampNano[NaiveDateTime] => Date64[NaiveDateTime] | conversion none }
{ Date[NaiveDateTime] => Date64Micro[NaiveDateTimeWrapperMicro] | conversion option }
{ Timestamp[NaiveDateTime] => Date64Micro[NaiveDateTimeWrapperMicro] | conversion none }
{ TimestampNano[NaiveDateTime] => Date64[NaiveDateTime] | conversion auto }
{ TimestampTz[DateTime<Utc>] => DateTimeTzMicro[DateTimeWrapperMicro] | conversion option }
{ TimestampTzNano[DateTime<Utc>] => DateTimeTz[DateTime<Utc>] | conversion auto }
}
Expand Down

0 comments on commit 1898328

Please sign in to comment.