Disable varDump postgresqlDataDir command as it was not found
While running the script command varDump postgresqlDataDir; was executed, but it was no longer found. It is not needed for the script to work Tests for libecpg were commented, so our changes from the documentation are visible
This commit is contained in:
parent
87da50ebd7
commit
fd50b407c4
3 changed files with 7 additions and 3 deletions
|
|
@ -47,7 +47,7 @@ rlJournalStart
|
|||
rlPhaseEnd
|
||||
|
||||
rlPhaseStartSetup "Database setup"
|
||||
varDump postgresqlDataDir;
|
||||
# varDump postgresqlDataDir;
|
||||
[[ -d $postgresqlDataDir ]] && rlFileBackup $postgresqlDataDir;
|
||||
postgresqlCleanup;
|
||||
postgresqlInitDB;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Taken from https://www.postgresql.org/docs/13/ecpg-variables.html
|
||||
// Taken from https://www.postgresql.org/docs/14/ecpg-variables.html
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -15,7 +15,9 @@ EXEC SQL BEGIN DECLARE SECTION;
|
|||
decimal *dec;
|
||||
EXEC SQL END DECLARE SECTION;
|
||||
|
||||
// Add "USER postgres;"
|
||||
EXEC SQL CONNECT TO testdb USER postgres;
|
||||
// EXEC SQL SELECT pg_catalog.set_config('search_path', '', false); EXEC SQL COMMIT;
|
||||
|
||||
num = PGTYPESnumeric_new();
|
||||
dec = PGTYPESdecimal_new();
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Taken from https://www.postgresql.org/docs/13/ecpg-variables.html
|
||||
// Taken from https://www.postgresql.org/docs/14/ecpg-variables.html
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -11,7 +11,9 @@ EXEC SQL BEGIN DECLARE SECTION;
|
|||
interval *in;
|
||||
EXEC SQL END DECLARE SECTION;
|
||||
|
||||
// Add "USER postgres;"
|
||||
EXEC SQL CONNECT TO testdb USER postgres;
|
||||
// EXEC SQL SELECT pg_catalog.set_config('search_path', '', false); EXEC SQL COMMIT;
|
||||
|
||||
in = PGTYPESinterval_new();
|
||||
EXEC SQL SELECT '1 min'::interval INTO :in;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue