@@ -68,20 +68,20 @@ create table not_nullable_no_nulls (
6868 col4 date)engine=ndb;
6969
7070--echo # cannot restore nullable->non-nullable without --lossy-conversions
71- --error 134
72- --exec $NDB_RESTORE --no-defaults -b $the_backup_id -n 1 -r --include-tables=test.nullable_no_nulls $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT
71+ --error 1
72+ --exec $NDB_RESTORE --no-defaults --core-file=0 - b $the_backup_id -n 1 -r --include-tables=test.nullable_no_nulls $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT 2>&1
7373
7474--echo # can restore nullable->non-nullable if non-nullable col has no NULL values
7575--exec $NDB_RESTORE --no-defaults -b $the_backup_id -n 1 -r --include-tables=test.nullable_no_nulls --lossy-conversions $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT
7676--exec $NDB_RESTORE --no-defaults -b $the_backup_id -n 2 -r --include-tables=test.nullable_no_nulls --lossy-conversions $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT
7777
7878--echo # cannot restore nullable->non-nullable if non-nullable col has NULL values
79- --error 139
80- --exec $NDB_RESTORE --no-defaults -b $the_backup_id -n 1 -r --include-tables=test.nullable_with_nulls --lossy-conversions $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT
79+ --error 1
80+ --exec $NDB_RESTORE --no-defaults --core-file=0 - b $the_backup_id -n 1 -r --include-tables=test.nullable_with_nulls --lossy-conversions $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT 2>&1
8181
8282--echo # cannot restore not-null->non-nullable without --promote-attributes
83- --error 134
84- --exec $NDB_RESTORE --no-defaults -b $the_backup_id -n 1 -r $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT
83+ --error 1
84+ --exec $NDB_RESTORE --no-defaults --core-file=0 - b $the_backup_id -n 1 -r $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT 2>&1
8585
8686--echo # can restore not-null->nullable
8787--exec $NDB_RESTORE --no-defaults -b $the_backup_id -n 1 -r --include-tables=test.not_nullable_no_nulls --promote-attributes $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT
@@ -134,8 +134,8 @@ create table nullable (
134134 col4 date not null)engine=ndb;
135135
136136--echo # cannot restore nullable->non-nullable if backup log sets NULL values
137- --error 139
138- --exec $NDB_RESTORE --no-defaults -b $the_backup_id -n 1 -r --include-tables=test.nullable --lossy-conversions $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT
137+ --error 1
138+ --exec $NDB_RESTORE --no-defaults --core-file=0 - b $the_backup_id -n 1 -r --include-tables=test.nullable --lossy-conversions $NDB_BACKUPS-$the_backup_id >> $NDB_TOOLS_OUTPUT 2>&1
139139
140140select * from nullable;
141141
0 commit comments