IDEMPIERE-4441 More fixes to the SyncDB command (#278)
Oracle fix - actual script is ignoring SP2 error messages Postgresql improvement to show the SQL command that throws error
This commit is contained in:
parent
41513ba3b1
commit
2d40c5104a
|
@ -29,7 +29,7 @@ ADEMPIERE_DB_PASSWORD=$2
|
|||
ADEMPIERE_DB_PATH=$3
|
||||
CMD="sqlplus $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME"
|
||||
SILENTCMD="sqlplus -S $ADEMPIERE_DB_USER/$ADEMPIERE_DB_PASSWORD@$ADEMPIERE_DB_SERVER:$ADEMPIERE_DB_PORT/$ADEMPIERE_DB_NAME"
|
||||
ERROR_STRINGS="^(ORA-[0-9]+:|TNS-|PLS-)"
|
||||
ERROR_STRINGS="\b(ORA-[0-9]+:|TNS-|PLS-|SP2-)"
|
||||
DIR_POST=$IDEMPIERE_HOME/migration
|
||||
if [ "x$4" = "x" ]
|
||||
then
|
||||
|
|
|
@ -66,7 +66,7 @@ export PGPASSWORD
|
|||
TMPFOLDER=/tmp
|
||||
ADEMPIERE_DB_USER=$1
|
||||
ADEMPIERE_DB_PATH=$3
|
||||
CMD="psql -b -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $ADEMPIERE_DB_USER"
|
||||
CMD="psql -b -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $ADEMPIERE_DB_USER -b"
|
||||
SILENTCMD="$CMD -q -t"
|
||||
ERROR_STRINGS="^(ERROR:|FEHLER:|FATAL:|ERRO:)"
|
||||
DIR_POST=$IDEMPIERE_HOME/migration
|
||||
|
|
|
@ -29,7 +29,7 @@ export PGPASSWORD
|
|||
TMPFOLDER=/tmp
|
||||
ADEMPIERE_DB_USER=$1
|
||||
ADEMPIERE_DB_PATH=$3
|
||||
CMD="psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $ADEMPIERE_DB_USER"
|
||||
CMD="psql -h $ADEMPIERE_DB_SERVER -p $ADEMPIERE_DB_PORT -d $ADEMPIERE_DB_NAME -U $ADEMPIERE_DB_USER -b"
|
||||
SILENTCMD="$CMD -q -t"
|
||||
ERROR_STRINGS="^(ERROR:|FEHLER:|FATAL:|ERRO:)"
|
||||
DIR_POST=$IDEMPIERE_HOME/migration
|
||||
|
|
Loading…
Reference in New Issue