Comments (5)
In fact, the current implementation of reset
resets the cached data, so there's no much value in testing mix of read/mark/reset calls.
mark/reset is tested in org.postgresql.test.jdbc2.BlobTest#markResetStream
from pgjdbc.
Thanks for the suggestion.
Pull requests are welcome.
from pgjdbc.
I don't see any existing tests for the class. LargeObjectManagerTest
does a basic read but that seems to be it?
StrangeInputStream
implements skip
, but nothing ever calls it.
from pgjdbc.
I guess we do not have specific tests for skip
as we used the default implementation.
Sure if we add a custom implementation, we'll need to cover it with tests.
The mix of read
+ mark
+ skip
+ reset
might be problematic for testing.
from pgjdbc.
You have implemented mark
, reset
, and close
, but there are apparently no tests for those. I am happy to add this feature, but I don't really want the burden of testing the whole thing from scratch. Unless I simply haven't found the tests?
from pgjdbc.
Related Issues (20)
- Compatibility of Java8 ZonedDateTime HOT 19
- Function stream.getLastReceiveLSN() return not corresponding LSN to the received record
- Turn off automatic prepared statement creation (prepareThreshold=0) by default HOT 4
- MONEY values cannot be read as numerical values HOT 3
- per-connection field metadata cache unusable when large number of schemas are used HOT 10
- JDBC driver sends "SAVEPOINT" query without finishing extended query protocol cycle HOT 1
- Common client key certificate with passphrase that can be used for jdbc and libpq HOT 3
- Parallel queries are disabled by the use of setMaxResult HOT 4
- Driver does not deallocate evicted prepared statements? HOT 3
- PGXAConnection: HeuristicMixedException during ROLLBACK PREPARED after PREPARE failed HOT 1
- DatabaseMetaData#getFunctionColumns's result has duplicate HOT 1
- Timestamp Conversion Issue - PostgreSQL JDBC Driver Misrepresents Timestamps Before 1900 in Asia/Shanghai Timezone HOT 2
- May I ask the expected date to fix CVE-2024-1597? HOT 10
- Add support for LibPQFactory to load root cert from the classpath
- 42.7 regression: PreparedStatement#setBlob(int, Blob) fails when blob.length() returns negative value HOT 1
- Keep Alive Feature Flushes Replication Slot Unexpectedly
- Pass a user defined type to store procedure from JAVA code HOT 2
- Wrong query generated when using preferQueryMode=simple due to wrong bind value types
- BlobInputStream does not reset() to correct position if LargeObject was not at position 0.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgjdbc.