You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE USER MAPPING FOR map_t SERVER myserver OPTIONS(password 'ZAQ!xsw2', username 'info_user');
when execute "select * from foreign_table" i get error.
debug log:
DEBUG: StartTransaction(1) name: unnamed; blockState: DEFAULT; state: INPROGRESS, xid/subid/cid: 0/1/0
DEBUG: In jdbcGetForeignRelSize
DEBUG: Added server = test to hashtable
DEBUG: In jq_connect_db_params
DEBUG: In jdbc_jvm_init
DEBUG: JVMEnvStat: JNI_EDETACHED; the current thread is not attached to the VM
DEBUG: In jdbc_attach_jvm
DEBUG: In jdbc_create_JDBC_connection
DEBUG: Created a JDBC connection: jdbc:sap://localhost:31015
DEBUG: In jq_connection_used_password
DEBUG: In jq_finish for conn=0xfa73c0
DEBUG: In jdbc_detach_jvm
ERROR: password is required
DETAIL: Non-superuser cannot connect if the server does not request a password.
HINT: Target server's authentication method must be changed.
I think, the jq_connection_used_password function isn't developed yet. There is simple return 0 without any test.
And the place of the check in connection.c is also curious.
jan-zajic
added a commit
to corpus-solutions/jdbc_fdw
that referenced
this issue
Jul 14, 2023
CREATE USER MAPPING FOR map_t SERVER myserver OPTIONS(password 'ZAQ!xsw2', username 'info_user');
when execute "select * from foreign_table" i get error.
debug log:
we check password here
jdbc_fdw/connection.c
Line 233 in 8dfb093
then check again (for non-superuser all conditions true. jq_connection_used_password always return 0)
jdbc_fdw/connection.c
Line 258 in 8dfb093
The text was updated successfully, but these errors were encountered: