Reading table name from PgStream #2666
Unanswered
linux-root
asked this question in
Q&A
Replies: 3 comments 3 replies
-
not that I am aware of. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Have you checked https://docs.oracle.com/javase/8/docs/api/java/sql/ResultSetMetaData.html#getTableName-int- ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm migrating my application from MariaDB to PostgreSQL. The MariaDB JDBC driver prepends table name to the column name to form column label in result set. Unfortunately, that's not PostgreSQL JDBC behavior. I decided to port the same feature from MariaDB driver to PostgreSQL driver. However, I could not find the way to read the table name associated to each
Field
. The only information about the table corresponding to aField
istableOid
. Here is the code readingField
s fromPgStream
inQueryExecutorImpl.java
:My question : Is there any way to obtain table name from PgStream so that I can prepend it to columLabel ? (MariaDB implementation uses its
PacketInputStream
and can be able to parse table name from it)Thank you for reading !
Beta Was this translation helpful? Give feedback.
All reactions