Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
3e18bd0
feat: Implement IMPORT statement grammar
Feb 3, 2025
482a993
feat: Classify new keywords in ParserKeywordsUtils
Feb 3, 2025
dcea88f
feat: Implement java classes for IMPORT statement
Feb 4, 2025
e1a74e1
feat: Add LOOKAHEADs for IMPORT statement
Feb 4, 2025
711200d
fix: Fix issues in IMPORT implementation
Feb 4, 2025
b0e6276
feat: Update keywords
Feb 5, 2025
0c9b80e
feat: Allow IMPORT as FromItem in SELECT
Feb 5, 2025
d412059
fix: Split double dot to fix broken unit tests
Feb 6, 2025
bcfa4e9
fix: Fix errors occured during verify step
Feb 6, 2025
0130d56
test: Implement unit tests for IMPORT
Feb 7, 2025
7437a75
feat: Simplify grammar
Feb 7, 2025
f495c96
test: Implement test for sub IMPORT
Feb 7, 2025
431a046
Merge branch 'master' into feature/exasol-import-statement
Feb 7, 2025
60bb98d
fix: Use double dot token in IMPORT
Feb 7, 2025
34fc6dd
feat: Implement EXPORT statement
Feb 7, 2025
c4e5907
refactor: Fix file extension in IMPORT tests
Feb 10, 2025
c1129a0
test: Implement unit tests for EXPORT statement
Feb 10, 2025
34791cf
feat: Implement classes for EXPORT statement
Feb 10, 2025
c658f4d
test: Fix EXPORT unit tests
Feb 11, 2025
9a71180
Merge branch 'master' into feature/exasol-import-export
Jun 2, 2025
8adaa89
fix: Implement missing SampleClause methods
Jun 2, 2025
0c132d0
feat: Add further Import tests
Jun 4, 2025
3d1b786
fix: Update Keywords and fix boolean data type matching
Jun 4, 2025
223143a
fix: Fix SourceDestinationType implementations
Jun 4, 2025
40f916d
style: Run spotlessApply
Jun 5, 2025
b56565d
fix: Fix spotbugsMain
Jun 5, 2025
3b74289
feat: Add test for RTRIM and LTRIM functions
Jun 10, 2025
7a08e3f
Merge branch 'master' into feature/exasol-import-export
Jun 10, 2025
140a6f1
feat: Add EXPORT feature flag
Jun 10, 2025
82e2f78
feat: Implement EXASOL dialect feature flag
Jun 10, 2025
f30d0bf
Merge branch 'master' into feature/exasol-import-export
manticore-projects Jun 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Fix SourceDestinationType implementations
  • Loading branch information
Stefan Steinhauser
Stefan Steinhauser committed Jun 4, 2025
commit 223143a3b07929335ac0fbe1d7094c605a65bc06
26 changes: 20 additions & 6 deletions src/main/java/net/sf/jsqlparser/statement/DBMSType.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,27 @@

import net.sf.jsqlparser.expression.StringValue;

public enum DBMSType implements SourceDestinationType {
EXA,
ORA,
JDBC;

public class DBMSType implements SourceDestinationType {
private final Kind dbmsType;
private StringValue jdbcDriverDefinition;

public DBMSType(String dbmsType) {
this(dbmsType, null);
}

public DBMSType(String dbmsType, String jdbcDriverDefinition) {
this.dbmsType = Kind.valueOf(dbmsType.toUpperCase());
if (jdbcDriverDefinition != null) {
this.jdbcDriverDefinition = new StringValue(jdbcDriverDefinition);
}
}

private enum Kind {
EXA,
ORA,
JDBC
}

public StringValue getJDBCDriverDefinition() {
return jdbcDriverDefinition;
}
Expand All @@ -30,7 +44,7 @@ public void setJDBCDriverDefinition(StringValue jdbcDriverDefinition) {
public String toString() {
StringBuilder sql = new StringBuilder();

sql.append(super.toString());
sql.append(dbmsType);
if (jdbcDriverDefinition != null) {
sql.append(" DRIVER = ").append(jdbcDriverDefinition);
}
Expand Down
19 changes: 16 additions & 3 deletions src/main/java/net/sf/jsqlparser/statement/FileType.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@
*/
package net.sf.jsqlparser.statement;

public enum FileType implements SourceDestinationType {
CSV,
FBV
public class FileType implements SourceDestinationType {
private final Kind fileType;

public FileType(String fileType) {
this.fileType = Kind.valueOf(fileType.toUpperCase());
}

private enum Kind {
CSV,
FBV
}

@Override
public String toString() {
return fileType.toString();
}
}
21 changes: 11 additions & 10 deletions src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,6 @@ DBMSSource DBMSSource() #DBMSSource: {
Table table;
ExpressionList<Column> columns;
List<StringValue> statements;
Token token;
} {
dbmsType = DBMSType() { dbmsSource.setSourceType(dbmsType); }

Expand All @@ -1437,26 +1436,28 @@ DBMSSource DBMSSource() #DBMSSource: {

DBMSType DBMSType(): {
DBMSType dbmsType;
Token tk1;
Token tk2 = null;
} {
(
<K_EXA> { dbmsType = DBMSType.EXA; }
| <K_ORA> { dbmsType = DBMSType.ORA; }
| <K_JDBC> { dbmsType = DBMSType.JDBC; }
[<K_DRIVER> "=" token = <S_CHAR_LITERAL> { dbmsType.setJDBCDriverDefinition(new StringValue(token.image)); }]
)

tk1=<K_EXA>
| tk1=<K_ORA>
| tk1=<K_JDBC>
[<K_DRIVER> "=" tk2=<S_CHAR_LITERAL>]
) { dbmsType = new DBMSType(tk1.image, tk2 == null ? null : tk2.image); }
{
return dbmsType;
}
}

FileType FileType(): {
FileType fileType;
Token tk;
} {
(
<K_CSV> { fileType = FileType.CSV; }
| <K_FBV> { fileType = FileType.FBV; }
)
tk=<K_CSV>
| tk=<K_FBV>
) { fileType = new FileType(tk.image); }
{
return fileType;
}
Expand Down