vertx-sql-client icon indicating copy to clipboard operation
vertx-sql-client copied to clipboard

citext support

Open arrowwood49 opened this issue 8 years ago • 8 comments

Does pg-client support citext type https://www.postgresql.org/docs/10/static/citext.html?

I can insert successfully with citext type but can't read the column with citext type. io.reactiverse.reactivex.pgclient.Row methods getValue() and getString() both returns null.

Thanks

arrowwood49 avatar Nov 02 '18 02:11 arrowwood49

do you know if that's possible to install it in the testing docker image of this project ?

vietj avatar Nov 03 '18 11:11 vietj

do you know how that works with the Postgresql JDBC driver ? that would help understand how it's handled there.

vietj avatar Nov 03 '18 11:11 vietj

Yes CITEXT is not supported yet

EmadAlblueshi avatar Nov 04 '18 22:11 EmadAlblueshi

does the citex have a stable type OID ?

vietj avatar Nov 04 '18 22:11 vietj

would it be possible to have a docker image that supports this extension for testing ?

vietj avatar Nov 04 '18 22:11 vietj

We should find the OID and in docker I think it’s possible to install the extension for testing but I’m not sure if it needs external package or simply enable it like pre installed extensions

EmadAlblueshi avatar Nov 04 '18 22:11 EmadAlblueshi

citext can be installed from standard Postgres extension.

The following creates the extension with test table in docker/postgres/resources/create-postgres.sql

CREATE EXTENSION IF NOT EXISTS citext WITH SCHEMA public;
DROP TABLE IF EXISTS test_citext;
CREATE TABLE test_citext (id integer, name citext);

arrowwood49 avatar Nov 05 '18 15:11 arrowwood49

Works with the latest version 0.10.7. Seems like commit https://github.com/reactiverse/reactive-pg-client/commit/689a7831360a6c2883ef1c87652af52896a22bf8 fixed the issue.

arrowwood49 avatar Nov 07 '18 02:11 arrowwood49