Skip to content

Commit e710a73

Browse files
authored
Merge pull request #378 from codefori/fix/fix-day-1-cleanup
Fix day one cleanup
2 parents d5ab8a9 + 39dda98 commit e710a73

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/views/results/html.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -449,13 +449,12 @@ export function generateScroller(basicSelect: string, isCL: boolean, withCancel?
449449
case 'NCLOB':
450450
case 'FLOAT':
451451
case 'DECFLOAT':
452-
case 'TIMESTAMP':
453452
case 'DATALINK':
454-
cell.title = column.type + ' (' + column.precision + ')';
453+
cell.title = column.type + '(' + column.precision + ')';
455454
break;
456455
case 'DECIMAL':
457456
case 'NUMERIC':
458-
cell.title = column.type + ' (' + column.precision + ',' + column.scale + ')';
457+
cell.title = column.type + '(' + column.precision + ', ' + column.scale + ')';
459458
break;
460459
default:
461460
cell.title = column.type;

src/views/schemaBrowser/index.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ export default class schemaBrowser {
167167

168168
vscode.commands.registerCommand(`vscode-db2i.viewPermissions`, async (object: SQLObject) => {
169169
if (object) {
170-
const content = `SELECT AUTHORIZATION_NAME, OBJECT_AUTHORITY,
170+
const content = `SELECT AUTHORIZATION_NAME as USER_NAME, OBJECT_AUTHORITY,
171171
OWNER, OBJECT_OPERATIONAL, OBJECT_MANAGEMENT, OBJECT_EXISTENCE, OBJECT_ALTER, OBJECT_REFERENCE,
172172
DATA_READ, DATA_ADD, DATA_UPDATE, DATA_DELETE, DATA_EXECUTE FROM QSYS2.OBJECT_PRIVILEGES
173173
WHERE OBJECT_SCHEMA='${object.schema}' AND OBJECT_NAME='${object.name}' AND
@@ -467,7 +467,8 @@ export default class schemaBrowser {
467467

468468
const data = await Schemas.getObjects(schema, [type], {
469469
limit: pageSize,
470-
offset
470+
offset,
471+
sort: true
471472
});
472473

473474
if (data.length > 0) {

0 commit comments

Comments
 (0)