Skip to content

Commit

Permalink
Merge pull request #2 from rtdi/master
Browse files Browse the repository at this point in the history
UI update
  • Loading branch information
wernerdaehn authored Oct 26, 2020
2 parents c031d84 + 99d233c commit ec70876
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ For example a producer might capture all Material Management related data and pr

### Data content

The data in Kafka is a 1:1 copy if the ABAP table structure plus some extra metadata information about the record, e.g. the Hana transaction id.
The data in Kafka is a 1:1 copy if the table structure plus some extra metadata information about the record, e.g. the Hana transaction id.


## Licensing
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>io.rtdi.bigdata.connector</groupId>
<artifactId>hanaconnector</artifactId>
<version>0.9.0</version>
<version>0.9.1</version>
<packaging>war</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
6 changes: 4 additions & 2 deletions src/main/java/io/rtdi/bigdata/hanaconnector/HanaBrowse.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ public File getBusinessObjectDirectory() {
}

public List<TableImport> getHanaTables() throws ConnectorRuntimeException {
String sql = "select schema_name, table_name from TABLES \r\n"
String sql = "SELECT schema_name, table_name FROM tables \r\n"
+ "WHERE schema_name IN (SELECT schema_name FROM EFFECTIVE_PRIVILEGES WHERE user_name = CURRENT_USER AND PRIVILEGE = 'TRIGGER' AND object_type = 'SCHEMA')\r\n"
+ "OR (schema_name, table_name) IN (SELECT schema_name, object_name FROM EFFECTIVE_PRIVILEGES WHERE user_name = CURRENT_USER AND PRIVILEGE = 'TRIGGER' AND object_type = 'TABLE')\r\n"
+ "order by 1,2";
try (PreparedStatement stmt = conn.prepareStatement(sql);) {
ResultSet rs = stmt.executeQuery();
Expand All @@ -95,7 +97,7 @@ public List<TableImport> getHanaTables() throws ConnectorRuntimeException {
}
return sortedlist;
} catch (SQLException e) {
throw new ConnectorRuntimeException("Reading all tables of the ABAP schema failed", e,
throw new ConnectorRuntimeException("Reading all tables of the TABLES view failed", e,
"Execute the sql as Hana user \"" + getConnectionProperties().getUsername() + "\"", sql);
}
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/ui5/view/AddTables.view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
enableBusyIndicator="true"
enableSelectAll="false"
ariaLabelledBy="title">
<t:extension>
<OverflowToolbar>
<Title text="Shows all tables the connected use has Trigger privileges granted"/>
</OverflowToolbar>
</t:extension>
<t:columns>
<t:Column width="50px">
<t:template>
Expand Down

0 comments on commit ec70876

Please sign in to comment.