mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-24 09:40:21 -06:00
Fixed an issue where [null] and [default] values are not get copied. Part of #3947
This commit is contained in:
parent
07f72252d7
commit
b29bc6868c
@ -3749,6 +3749,15 @@ define('tools.querytool', [
|
||||
if (values.length > k) {
|
||||
v = values[k].replace(new RegExp(`^\\${self.preferences.results_grid_quote_char}`), '').replace(new RegExp(`\\${self.preferences.results_grid_quote_char}$`), '');
|
||||
}
|
||||
|
||||
// set value to default or null depending on column metadata
|
||||
if(v === '') {
|
||||
if(self.columns[k].has_default_val) {
|
||||
v = undefined;
|
||||
} else {
|
||||
v = null;
|
||||
}
|
||||
}
|
||||
row[self.columns[k].name] = v;
|
||||
}
|
||||
partial.push(row);
|
||||
|
Loading…
Reference in New Issue
Block a user