Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SQL ошибка
- ERROR: function json_array_elements(integer) does not exist
- Hint: No function matches the given name and argument types. You might need to add explicit type casts.
- Position: 3296
- SQL-запрос
- select c.clinic_id, c.id, c.uid, c.patient_id, coalesce(i.surname, '') || coalesce(' ' || i.name, '') || coalesce(' ' || i.patr_name, ''), coalesce('№' || c.uid || ',', ''), (select extract_age_particularly(i.birth_dt)), c.open_date, c.close_date, (select get_bed_day_amount_n2o(c.id)), fin.id, fin.name, mdd.code, c.case_type_id, c.care_level_id,
- (select string_agg(mcsg.code, ';') from md_clinical_statistical_group mcsg where mcsg.id in (select step.csg_id from mc_step step where step.case_id = c.id))
- , lsr.name, ls.result_id, lscr.name, c.closing_step_id,
- (select case when max(bsi.id) is not null then 1 else 2 end from fin_bill_spec_item bsi
- join fin_bill b on b.id = bsi.bill_id
- join sr_srv_rendered ssr on ssr.id = bsi.service_id
- where b.status_id <> 0 and ssr.md_case_id = c.id
- )
- , (select adr__get_element_as_text(
- (select pa.addr_id from pim_party_address pa
- inner join pim_party_addr_to_addr_type patat on pa.party_id = i.id and patat.party_address_id = pa.id and patat.address_type_id = 4
- limit 1), '(1,n,1)(2,s,0)(3,s,0)(4,s,0)(5,s,0)(6,s,0)(7,s,0)(8,s,0)(9,s,0)'))
- ,
- (select ss.regimen_id from mc_step ss where ss.case_id = c.id and ss._case_mode_id = 2 and
- not exists(select 1 from mc_step s2 where s2.case_id = ss.case_id and s2._case_mode_id = 2 and
- s2.hsp_previous_id = ss.id) order by ss.id desc limit 1)
- , coalesce('№' || c.uid || ', ', '') || i.surname || ' ' || i.name || ' ' || i.patr_name || ' (' || to_char(i.birth_dt, 'dd.MM.yyyy') || ')', ls.id, ls.is_autopsy, c.closing_step_id is not null,
- (select is_death from mc_step_result where id = ls.result_id)
- ,
- (select exists(select id from hospital.childbirth chb where chb.step_id in (select id from mc_step where case_id = c.id)))
- ,
- (select name from pim_department where id = (select hsp_department_id from mc_step where _case_mode_id = 2 and case_id = c.id and _is_last is true))
- from mc_case c
- join mc_case_type ct on ct.id = c.case_type_id
- left join fin_funding_source_type fin on fin.id = c.funding_id
- left join mc_diagnosis mcd on mcd.id = c.main_diagnos_id
- left join md_diagnosis mdd on mdd .id = mcd.diagnos_id
- left join mc_step ls on ls.id = c.closing_step_id
- left join mc_step_result lsr on lsr.id = ls.result_id
- left join mc_step_care_result lscr on lscr.id = ls.outcome_id
- left join pim_individual i on i.id = c.patient_id
- where ct.case_mode_id = 2 and c.clinic_id=:clinicId and
- (:outcomeDate.begin::date is null and :outcomeDate.end::date is null or
- ((:outcomeDate.begin::date is null or c.close_date >= :outcomeDate.begin) and
- (:outcomeDate.end::date is null or c.close_date <= :outcomeDate.end)))
- and
- exists(select 1 from mc_step s where s._case_mode_id =2 and s.case_id = c.id and
- s.hsp_previous_id is not null and s.hsp_department_id in (select cast(json_array_elements(:department*.id) as integer)))
- and
- (select ss.regimen_id from mc_step ss where ss.case_id = c.id and ss._case_mode_id = 2 and
- not exists(select 1 from mc_step s2 where s2.case_id = ss.case_id and s2._case_mode_id = 2 and
- s2.hsp_previous_id = ss.id) order by ss.id desc limit 1)
- =:regimen.id
- order by c.open_date, c.id
- limit 15
- Параметры
- regimen.id = 1
- clinicId = 438
- outcomeDate.begin = Thu Aug 24 00:00:00 MSK 2017
- outcomeDate.end = Thu Aug 24 00:00:00 MSK 2017
- department*.id = [32272]
- csg.id = null
- financialType.id = null
- patient.id = null
- caseType.id = null
- result.id = null
- chooseCases.id = null
- bedProfile.id = null
- bedDaysAmount = null
- uidForTitleInAutopsy = null
- uid = null
- admissionDate.end = null
- isAutopsy = null
- id = null
- step.id = null
- admissionDate.begin = null
- outcome = null
- hasChildbirth = null
- uidForTitle = null
- admissionDate = null
- address = null
- diagnosis = null
- careLevel.id = null
- caseState.id = null
- attendant.id = null
- dep.name = null
- financialType.name = null
- isDeath = null
- isClosed = null
- result.name = null
- department.id = null
- patient.name = null
- age = null
- csg.code = null
- hasBill.id = null
- outcomeDate = {begin=24.08.2017 00:00, end=24.08.2017 00:00}
- Stacktrace
- net.n2oapp.framework.engine.exception.N2oSqlException: ERROR: function json_array_elements(integer) does not exist
- Hint: No function matches the given name and argument types. You might need to add explicit type casts.
- Position: 3296
- at net.n2oapp.framework.engine.data.query.SqlQueryEngine.init(SqlQueryEngine.java:50)
- at net.n2oapp.framework.api.data.ComputationalQueryEngine.executeQuery(ComputationalQueryEngine.java:22)
- at net.n2oapp.framework.engine.processor.QueryProcessor.doQuery(QueryProcessor.java:126)
- at net.n2oapp.framework.engine.processor.QueryProcessor.executeQuery(QueryProcessor.java:67)
- at net.n2oapp.framework.engine.processor.QueryProcessor.execute(QueryProcessor.java:43)
- at net.n2oapp.framework.ui.controller.query.GetController.executeQuery(GetController.java:39)
- at net.n2oapp.framework.ui.controller.query.QueryController.execute(QueryController.java:46)
- at net.n2oapp.framework.ui.controller.DataController.getData(DataController.java:57)
- at net.n2oapp.framework.ui.servlet.data.DataServlet$1.resolveSuccessModel(DataServlet.java:32)
- at net.n2oapp.framework.mvc.callback.json.JsonServletCallback.onService(JsonServletCallback.java:25)
- at net.n2oapp.framework.mvc.api.SimpleServletTemplate.doService(SimpleServletTemplate.java:28)
- at net.n2oapp.framework.ui.servlet.data.DataServlet.safeDoGet(DataServlet.java:28)
- at net.n2oapp.framework.mvc.n2o.N2oServlet.doGet(N2oServlet.java:81)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:624)
- at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at net.n2oapp.security.auth.filter.WorkplaceFilter.doFilter(WorkplaceFilter.java:53)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at net.n2oapp.framework.ui.servlet.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:28)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at org.jasig.cas.client.session.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:110)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)
- at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
- at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:115)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:158)
- at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter.doFilter(DefaultLoginPageGeneratingFilter.java:177)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:206)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:206)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:121)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)
- at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
- at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:106)
- at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
- at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)
- at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)
- at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
- at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
- at net.n2oapp.security.auth.filter.SecurityFilter.doFilter(SecurityFilter.java:43)
- at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
- at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
- at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
- at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
- at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
- at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
- at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
- at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
- at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
- at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
- at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
- at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
- at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2459)
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
- at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
- at java.lang.Thread.run(Thread.java:745)
- Caused by: net.n2oapp.criteria.sql.query.CriteriaSqlException: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [
- select c.clinic_id, c.id, c.uid, c.patient_id, coalesce(i.surname, '') || coalesce(' ' || i.name, '') || coalesce(' ' || i.patr_name, ''), coalesce('№' || c.uid || ',', ''), (select extract_age_particularly(i.birth_dt)), c.open_date, c.close_date, (select get_bed_day_amount_n2o(c.id)), fin.id, fin.name, mdd.code, c.case_type_id, c.care_level_id,
- (select string_agg(mcsg.code, ';') from md_clinical_statistical_group mcsg where mcsg.id in (select step.csg_id from mc_step step where step.case_id = c.id))
- , lsr.name, ls.result_id, lscr.name, c.closing_step_id,
- (select case when max(bsi.id) is not null then 1 else 2 end from fin_bill_spec_item bsi
- join fin_bill b on b.id = bsi.bill_id
- join sr_srv_rendered ssr on ssr.id = bsi.service_id
- where b.status_id <> 0 and ssr.md_case_id = c.id
- )
- , (select adr__get_element_as_text(
- (select pa.addr_id from pim_party_address pa
- inner join pim_party_addr_to_addr_type patat on pa.party_id = i.id and patat.party_address_id = pa.id and patat.address_type_id = 4
- limit 1), '(1,n,1)(2,s,0)(3,s,0)(4,s,0)(5,s,0)(6,s,0)(7,s,0)(8,s,0)(9,s,0)'))
- ,
- (select ss.regimen_id from mc_step ss where ss.case_id = c.id and ss._case_mode_id = 2 and
- not exists(select 1 from mc_step s2 where s2.case_id = ss.case_id and s2._case_mode_id = 2 and
- s2.hsp_previous_id = ss.id) order by ss.id desc limit 1)
- , coalesce('№' || c.uid || ', ', '') || i.surname || ' ' || i.name || ' ' || i.patr_name || ' (' || to_char(i.birth_dt, 'dd.MM.yyyy') || ')', ls.id, ls.is_autopsy, c.closing_step_id is not null,
- (select is_death from mc_step_result where id = ls.result_id)
- ,
- (select exists(select id from hospital.childbirth chb where chb.step_id in (select id from mc_step where case_id = c.id)))
- ,
- (select name from pim_department where id = (select hsp_department_id from mc_step where _case_mode_id = 2 and case_id = c.id and _is_last is true))
- from mc_case c
- join mc_case_type ct on ct.id = c.case_type_id
- left join fin_funding_source_type fin on fin.id = c.funding_id
- left join mc_diagnosis mcd on mcd.id = c.main_diagnos_id
- left join md_diagnosis mdd on mdd .id = mcd.diagnos_id
- left join mc_step ls on ls.id = c.closing_step_id
- left join mc_step_result lsr on lsr.id = ls.result_id
- left join mc_step_care_result lscr on lscr.id = ls.outcome_id
- left join pim_individual i on i.id = c.patient_id
- where ct.case_mode_id = 2 and c.clinic_id=? and
- (?::date is null and ?::date is null or
- ((?::date is null or c.close_date >= ?) and
- (?::date is null or c.close_date <= ?)))
- and
- exists(select 1 from mc_step s where s._case_mode_id =2 and s.case_id = c.id and
- s.hsp_previous_id is not null and s.hsp_department_id in (select cast(json_array_elements(?) as integer)))
- and
- (select ss.regimen_id from mc_step ss where ss.case_id = c.id and ss._case_mode_id = 2 and
- not exists(select 1 from mc_step s2 where s2.case_id = ss.case_id and s2._case_mode_id = 2 and
- s2.hsp_previous_id = ss.id) order by ss.id desc limit 1)
- =?
- order by c.open_date, c.id
- limit 15]; nested exception is org.postgresql.util.PSQLException: ERROR: function json_array_elements(integer) does not exist
- Hint: No function matches the given name and argument types. You might need to add explicit type casts.
- Position: 3296
- at net.n2oapp.criteria.sql.query.SqlPageDao.getList(SqlPageDao.java:48)
- at net.n2oapp.criteria.api.query.QueryPage.getCollectionInitial(QueryPage.java:42)
- at net.n2oapp.framework.engine.data.query.page.TransactionalQueryPage.getCollectionInitial(TransactionalQueryPage.java:48)
- at net.n2oapp.criteria.api.ComputationalCollectionPage.getCollection(ComputationalCollectionPage.java:37)
- at net.n2oapp.criteria.api.ComputationalCollectionPage.init(ComputationalCollectionPage.java:61)
- at net.n2oapp.framework.engine.data.query.page.TransactionalQueryPage.access$1(TransactionalQueryPage.java:1)
- at net.n2oapp.framework.engine.data.query.page.TransactionalQueryPage$1.doInTransactionWithoutResult(TransactionalQueryPage.java:33)
- at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:34)
- at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
- at net.n2oapp.routing.datasource.JndiRoutingDataSourceTemplate.lambda$execute$0(JndiRoutingDataSourceTemplate.java:26)
- at net.n2oapp.routing.datasource.JndiRoutingDataSourceTemplate.execute(JndiRoutingDataSourceTemplate.java:17)
- at net.n2oapp.routing.datasource.JndiRoutingDataSourceTemplate.execute(JndiRoutingDataSourceTemplate.java:25)
- at net.n2oapp.framework.engine.data.query.page.TransactionalQueryPage.init(TransactionalQueryPage.java:30)
- at net.n2oapp.framework.api.data.ComputationalQueryEngine.init(ComputationalQueryEngine.java:31)
- at net.n2oapp.framework.engine.data.query.SqlQueryEngine.init(SqlQueryEngine.java:48)
- ... 81 more
- Caused by: org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [
- select c.clinic_id, c.id, c.uid, c.patient_id, coalesce(i.surname, '') || coalesce(' ' || i.name, '') || coalesce(' ' || i.patr_name, ''), coalesce('№' || c.uid || ',', ''), (select extract_age_particularly(i.birth_dt)), c.open_date, c.close_date, (select get_bed_day_amount_n2o(c.id)), fin.id, fin.name, mdd.code, c.case_type_id, c.care_level_id,
- (select string_agg(mcsg.code, ';') from md_clinical_statistical_group mcsg where mcsg.id in (select step.csg_id from mc_step step where step.case_id = c.id))
- , lsr.name, ls.result_id, lscr.name, c.closing_step_id,
- (select case when max(bsi.id) is not null then 1 else 2 end from fin_bill_spec_item bsi
- join fin_bill b on b.id = bsi.bill_id
- join sr_srv_rendered ssr on ssr.id = bsi.service_id
- where b.status_id <> 0 and ssr.md_case_id = c.id
- )
- , (select adr__get_element_as_text(
- (select pa.addr_id from pim_party_address pa
- inner join pim_party_addr_to_addr_type patat on pa.party_id = i.id and patat.party_address_id = pa.id and patat.address_type_id = 4
- limit 1), '(1,n,1)(2,s,0)(3,s,0)(4,s,0)(5,s,0)(6,s,0)(7,s,0)(8,s,0)(9,s,0)'))
- ,
- (select ss.regimen_id from mc_step ss where ss.case_id = c.id and ss._case_mode_id = 2 and
- not exists(select 1 from mc_step s2 where s2.case_id = ss.case_id and s2._case_mode_id = 2 and
- s2.hsp_previous_id = ss.id) order by ss.id desc limit 1)
- , coalesce('№' || c.uid || ', ', '') || i.surname || ' ' || i.name || ' ' || i.patr_name || ' (' || to_char(i.birth_dt, 'dd.MM.yyyy') || ')', ls.id, ls.is_autopsy, c.closing_step_id is not null,
- (select is_death from mc_step_result where id = ls.result_id)
- ,
- (select exists(select id from hospital.childbirth chb where chb.step_id in (select id from mc_step where case_id = c.id)))
- ,
- (select name from pim_department where id = (select hsp_department_id from mc_step where _case_mode_id = 2 and case_id = c.id and _is_last is true))
- from mc_case c
- join mc_case_type ct on ct.id = c.case_type_id
- left join fin_funding_source_type fin on fin.id = c.funding_id
- left join mc_diagnosis mcd on mcd.id = c.main_diagnos_id
- left join md_diagnosis mdd on mdd .id = mcd.diagnos_id
- left join mc_step ls on ls.id = c.closing_step_id
- left join mc_step_result lsr on lsr.id = ls.result_id
- left join mc_step_care_result lscr on lscr.id = ls.outcome_id
- left join pim_individual i on i.id = c.patient_id
- where ct.case_mode_id = 2 and c.clinic_id=? and
- (?::date is null and ?::date is null or
- ((?::date is null or c.close_date >= ?) and
- (?::date is null or c.close_date <= ?)))
- and
- exists(select 1 from mc_step s where s._case_mode_id =2 and s.case_id = c.id and
- s.hsp_previous_id is not null and s.hsp_department_id in (select cast(json_array_elements(?) as integer)))
- and
- (select ss.regimen_id from mc_step ss where ss.case_id = c.id and ss._case_mode_id = 2 and
- not exists(select 1 from mc_step s2 where s2.case_id = ss.case_id and s2._case_mode_id = 2 and
- s2.hsp_previous_id = ss.id) order by ss.id desc limit 1)
- =?
- order by c.open_date, c.id
- limit 15]; nested exception is org.postgresql.util.PSQLException: ERROR: function json_array_elements(integer) does not exist
- Hint: No function matches the given name and argument types. You might need to add explicit type casts.
- Position: 3296
- at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:99)
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73)
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
- at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:645)
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:680)
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:707)
- at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:757)
- at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:192)
- at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:199)
- at net.n2oapp.criteria.sql.query.SqlPageDao.getList(SqlPageDao.java:46)
- ... 95 more
- Caused by: org.postgresql.util.PSQLException: ERROR: function json_array_elements(integer) does not exist
- Hint: No function matches the given name and argument types. You might need to add explicit type casts.
- Position: 3296
- at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2412)
- at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2125)
- at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:297)
- at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:428)
- at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:354)
- at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:169)
- at org.postgresql.jdbc.PgPreparedStatement.executeQuery(PgPreparedStatement.java:117)
- at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:688)
- at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:629)
- ... 101 more
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement