0

I'm sending a JS object from my front-end to my Java backend, and I'm passing a object like so, which contains different types

wrapperObject = {
  JSONOBJ = {
      'key': 'value'
  },
  id: '123',
  date: 'exampledate'
}

My java backend then takes this wrapperObject and converts every field inside into a value inside of a hashmap Map. Whenever it reaches the JSONObject, however, it parses it and attempts to insert into the db and I reach a

bad SQL grammar []; nested exception is org.postgresql.util.PSQLException: No hstore extension installed.

What can I do about this, and is there a better way of approaching this?

1 Answer 1

1

It sounds like it may be as simple as adding the hstore extension. The PostgreSQL documentation for installation looks pretty straightforward:

Let me know if I'm missing something, hope this helps!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.