Using unaccent on H2 database

562 views
Skip to first unread message

BeginnerH2

unread,
Oct 10, 2013, 4:13:02 AM10/10/13
to h2-da...@googlegroups.com
Hello,

When I use unaccent on H2 database I have a kind exception: Caused by: java.sql.SQLException: Unexpected token: UNACCENT in statement

I think that Unaccent function is not supportable on the database H2 Database.

there is a hard
way to create or add this function on H2 database?

Thank you.

Noel Grandin

unread,
Oct 10, 2013, 4:43:06 AM10/10/13
to h2-da...@googlegroups.com, BeginnerH2

Noel Grandin

unread,
Oct 10, 2013, 6:10:40 AM10/10/13
to BeginnerH2, H2 Database

UNACCENT appears to be a PostgreSQL specific function, which we do not support.

However, if you are trying to do some kind of full-text search, we support Lucene:
http://h2database.com/html/tutorial.html#fulltext


On 2013-10-10 12:07, BeginnerH2 wrote:
thank you for your answer

but I'm looking how to install the extension unaccent on the database H2, it is possible?

In fact, My SQL query is run on two databases : PostgreSQL and H2, if I use CREATE ALIAS it will work on H2 database but it will not work on PostgreSQL.

I inform
you that I have installed on unaccent postgrSQL and it works.

thanks.

Reply all
Reply to author
Forward
0 new messages