Comments (7)
Sorry for the inconvenience.
Could you tell me the timestamp value that causes the error?
from oracle_fdw.
Oracle SQL Dev Tool shows me values like : 28/03/14 17:56:10,863000000
First tried with import schema, giving this error. I tried to map into a character varying(255) in postgresql, same issue. It worked fine in postgresql 9.4.
from oracle_fdw.
Hmm, it works for me.
In Oracle:
SQL> CREATE TABLE tstest (id NUMBER(5) PRIMARY KEY, ts TIMESTAMP(6) NOT NULL);
SQL> INSERT INTO tstest (id, ts) VALUES (1, to_timestamp('2014-03-28 17:56:10.863000000', 'YYYY-MM-DD HH24:MI:SS.FF'));
SQL> COMMIT;
In PostgreSQL:
test=> CREATE FOREIGN TABLE tstest (id integer NOT NULL, ts timestamp(6) NOT NULL) SERVER oracle OPTIONS (table 'TSTEST');
test=> SELECT * FROM tstest;
┌────┬─────────────────────────┐
│ id │ ts │
├────┼─────────────────────────┤
│ 1 │ 2014-03-28 17:56:10.863 │
└────┴─────────────────────────┘
(1 row)
Could you tell me the exact hex value of the Oracle date field?
You can get it with the DUMP
function, in my example like this:
SQL> SELECT dump(ts, 16) FROM tstest WHERE id = 1;
DUMP(TS,16)
--------------------------------------------------------------------------------
Typ=180 Len=11: 78,72,3,1c,12,39,b,33,70,55,c0
Alternatively, can you come up with a sequence of SQL statements to reproduce the problem?
from oracle_fdw.
Here is the result :
Typ=180 Len=11: 78,72,3,1c,12,39,b,33,70,55,c0
So same value as yours. Did you run your tests with postgresql 9.5 ?
from oracle_fdw.
Ok, I can reproduce the error now, but only with lc_messages = fr_FR.UTF-8
.
I'll look into it.
from oracle_fdw.
I have pushed 3fa9d98 that should fix the problem.
Can you check?
from oracle_fdw.
👍 Fixed ! Thanks !
from oracle_fdw.
Related Issues (20)
- Change in maximum prefetch option between 2.5.0 and 2.6.0 HOT 3
- warning: implicit declaration of function 'bms_first_member'; did you mean 'bms_is_member'? [-Wimplicit-function-declaration] HOT 2
- Filtering stops being pushed into WHERE clause HOT 4
- Slow Performance pulling CLOB from Oracle and writing to Postgres HOT 5
- Segmentation fault when copying CLOB data 1MB or longer HOT 16
- How to use TCPS to connect to Oracle via the FDW HOT 4
- Is there support for Oracle External tables? HOT 10
- Does oracle_fdw support test query to check cached sesssion valid HOT 4
- oracle_fdw on AlmaLinux 8 installation failed HOT 4
- New Feature - Possibility to map column by name, not by position HOT 3
- cannot build 2.6.0 on windows x64 (error LNK2001: unresolved external symbol XactReadOnly) HOT 21
- Error: Could not load library "/usr/lib/postgresql/13/lib/oracle_fdw.so"
- Support for Postgres v16? HOT 3
- Not able to create extension oracle_fdw HOT 2
- Incompatible library - magic block mismatch. Server has NAMEDATALEN=64, library has 256 HOT 5
- Using use_remote_estimate HOT 7
- LIMIT is not pushed down in JOIN query HOT 8
- Import foreign schema limit to is not passing table names to Oracle query HOT 4
- A questions about the development of Postgres Extension Development. (No related to this project.) HOT 2
- Internal oracle_fdw error: encountered unknown node type 164. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oracle_fdw.