Guest User

Untitled

a guest
Nov 21st, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. CREATE FUNCTION function_name()
  2. RETURNS TRIGGER AS
  3. $trigger$
  4. BEGIN
  5. <FUNCTION BODY>
  6. END;
  7. $trigger$ LANGUAGE plpgsql;
  8.  
  9. ...org.postgresql.util.PSQLException: Unterminated dollar quote started at position...
  10.  
  11. Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.jdbc.datasource.init.DataSourceInitializer#0': Invocation of init method failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #63 of class path resource [db/initDB.sql]: CREATE FUNCTION function_name() RETURNS TRIGGER AS $trigger$ BEGIN <FUNCTION BODY>; nested exception is org.postgresql.util.PSQLException: Unterminated dollar quote started at position 50 in SQL CREATE FUNCTION function_name() RETURNS TRIGGER AS $new_emp$ BEGIN <FUNCTION BODY>. Expected terminating $$
Add Comment
Please, Sign In to add comment