pg_spec_helper 1.8.2 → 1.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/pg_spec_helper/functions.rb +4 -4
- data/lib/pg_spec_helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0273accb1b779e4bc7110b9ddb01642f49c4417dfe6a3460d2f17d4ce8534ba4
|
4
|
+
data.tar.gz: e5524ec22aa600611f4703e3a34bde74d6303bc829a2d708f486628dc125e0dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8e3bdf16a61937ec635969008f29bacac74ee58d5bff2995b3279bd9eeb7e3d702ac8b8b7b1489ca29a7018dd30c5d76fdad23634177e2b35d248da6422bb9f
|
7
|
+
data.tar.gz: 3586365ba81191a108877387224d71634b93db0712b89ac43746de5716a027cca1c24fd3c647950b6ab09475b62f028d7c6fe198440b9a95671632a38e635dcd
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [1.8.3](https://github.com/craigulliott/pg_spec_helper/compare/v1.8.2...v1.8.3) (2023-08-06)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* stripping whitespace off the end of the method definition ([df63ae9](https://github.com/craigulliott/pg_spec_helper/commit/df63ae96faf090b98220a9e64d87dbaaf89135d0))
|
9
|
+
|
3
10
|
## [1.8.2](https://github.com/craigulliott/pg_spec_helper/compare/v1.8.1...v1.8.2) (2023-08-06)
|
4
11
|
|
5
12
|
|
@@ -4,11 +4,11 @@ class PGSpecHelper
|
|
4
4
|
module Functions
|
5
5
|
# create a function
|
6
6
|
def create_function schema_name, function_name, function_definition
|
7
|
-
connection.exec <<~SQL
|
8
|
-
CREATE FUNCTION #{schema_name}.#{function_name}() returns trigger language plpgsql AS
|
9
|
-
BEGIN #{function_definition.strip};
|
7
|
+
connection.exec <<~SQL
|
8
|
+
CREATE FUNCTION #{schema_name}.#{function_name}() returns trigger language plpgsql AS
|
9
|
+
$$BEGIN #{function_definition.strip};
|
10
10
|
RETURN NEW;
|
11
|
-
END
|
11
|
+
END$$;
|
12
12
|
SQL
|
13
13
|
end
|
14
14
|
|