Skip to content

Commit 1d05ec4

Browse files
author
volker
committed
copyright 2024
1 parent 6458c2b commit 1d05ec4

23 files changed

+25
-40
lines changed

src/com/inet/excel/ExcelConnection.java

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 i-net software
2+
* Copyright 2023 - 2024 i-net software
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -89,8 +89,7 @@ public boolean isWrapperFor( Class<?> iface ) throws SQLException {
8989
*/
9090
@Override
9191
public Statement createStatement() throws SQLException {
92-
ExcelDriver.throwExceptionAboutUnsupportedOperation();
93-
return null;
92+
return new ExcelStatement( parser );
9493
}
9594

9695
/**
@@ -108,21 +107,7 @@ public PreparedStatement prepareStatement( String sql ) throws SQLException {
108107
@Override
109108
public CallableStatement prepareCall( String sql ) throws SQLException {
110109
throwIfAlreadyClosed();
111-
112-
String procedureName = null;
113-
114-
if( sql != null && sql.startsWith( "{call " ) ) {
115-
if( sql.endsWith( "()}" ) ) {
116-
procedureName = sql.substring( 6, sql.length() - 3 );
117-
} else if( sql.endsWith( "}" ) ) {
118-
procedureName = sql.substring( 6, sql.length() - 1 );
119-
}
120-
}
121-
122-
if( procedureName != null ) {
123-
return new ExcelCallableStatement( parser, procedureName );
124-
}
125-
return null;
110+
return new ExcelCallableStatement( parser, sql );
126111
}
127112

128113
/**

src/com/inet/excel/ExcelDatabaseMetaData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 i-net software
2+
* Copyright 2023 - 2024 i-net software
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/com/inet/excel/ExcelDatabaseResultSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 i-net software
2+
* Copyright 2023 - 2024 i-net software
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/com/inet/excel/ExcelDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 i-net software
2+
* Copyright 2023 - 2024 i-net software
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/com/inet/excel/ExcelSheetResultSet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 i-net software
2+
* Copyright 2023 - 2024 i-net software
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/com/inet/excel/ExcelSheetResultSetMetaData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 i-net software
2+
* Copyright 2023 - 2024 i-net software
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/com/inet/excel/parser/ExcelParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 i-net software
2+
* Copyright 2023 - 2024 i-net software
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/com/inet/excel/parser/FormatCodeAnalyzer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 i-net software
2+
* Copyright 2023 - 2024 i-net software
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/com/inet/excel/parser/RowData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 i-net software
2+
* Copyright 2023 - 2024 i-net software
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/com/inet/excel/parser/RowSpanData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023 i-net software
2+
* Copyright 2023 - 2024 i-net software
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)