Fix an issue where oid column should not be pasted when copy/paste row is used on query output containing the oid column. Fixes #4381

This commit is contained in:
Aditya Toshniwal
2019-08-28 13:35:40 +05:30
committed by Akshay Joshi
parent ac298b03c0
commit 028473eb83
3 changed files with 11 additions and 3 deletions

View File

@@ -3712,6 +3712,10 @@ define('tools.querytool', [
new_row.is_row_copied = true;
self.temp_new_rows.push(count);
new_row[self.client_primary_key] = _key;
if(self.has_oids && new_row.oid) {
new_row.oid = null;
}
dataView.addItem(new_row);
self.data_store.added[_key] = {
'err': false,