The script is like the following.

URL="jdbc:h2:/opt/app/var/db/session-db;AUTO_SERVER=TRUE"

set -f
echo "$1" | java -cp "$JAR" org.h2.tools.RunScript -url "$URL" -user '' 
-password '' -script /dev/stdin -showResults
maanantai 10. tammikuuta 2022 klo 16.50.24 UTC+2 Evgenij Ryazanov kirjoitti:

> Hello!
>
> How value of -script parameter looks like? It is a regular file, pipe, or 
> some other special object?
>
> I cannot reproduce this issue with regular files, but BufferedInputStream, 
> unfortunately, may fail if underlying InputStream thrown exceptions from 
> its available() method.
> Maybe H2 should use BufferedReader over InputStreamReader over InputStream 
> instead of InputStreamReader over BufferedInputStream over InputStream.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/h2-database/46c2c7dd-b8bc-4b61-9360-109fa2295ea1n%40googlegroups.com.

Reply via email to