view tests/javaspecific.md @ 925:4dfdb62e3e9d

Extend JDBC_API_Tester program with optional second startup argument '-skipMALoutput'. This allows the JDBC_API_Tester program to be called to skip the comparing the MAL output of tests which return MAL output such as PLAN, EXPLAIN and TRACE statements. It is intended for internal development use only.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 08 Aug 2024 15:26:28 +0200 (8 months ago)
parents 778959b2e0a4
children
line wrap: on
line source
# Java-specific tests

Test settings that are only in monetdb-java.

```test
ONLY jdbc
EXPECT so_timeout=0
SET so_timeout=42
EXPECT so_timeout=42
ACCEPT monetdb://?so_timeout=99
EXPECT so_timeout=99
```

```test
ONLY jdbc
EXPECT treat_clob_as_varchar=true
SET treat_clob_as_varchar=off
EXPECT treat_clob_as_varchar=false
ACCEPT monetdb://?treat_clob_as_varchar=yes
EXPECT treat_clob_as_varchar=on
```

```test
ONLY jdbc
EXPECT treat_blob_as_binary=true
SET treat_blob_as_binary=off
EXPECT treat_blob_as_binary=false
ACCEPT monetdb://?treat_blob_as_binary=yes
EXPECT treat_blob_as_binary=on
```

```test
ONLY jdbc
EXPECT client_info=true
EXPECT client_application=
EXPECT client_remark=
```

```test
ONLY jdbc
SET client_info=false
SET client_application=myapp
SET client_remark=a remark
EXPECT client_info=false
EXPECT client_application=myapp
EXPECT client_remark=a remark
```