java/sql-dk/version-info.sh
author František Kučera <franta-hg@frantovo.cz>
Sat, 25 Jul 2020 17:25:19 +0200
branchv_0
changeset 252 a9d4a8d5c57f
parent 109 aef98fd7c7c9
permissions -rwxr-xr-x
improve multiple results support

The specification talks exactly about -1:
> Returns: the current result as an update count;
> -1 if the current result is a ResultSet object or there are no more results

Other negative numbers can theoretically mean something different than „no more results“
e.g. unknown number of updates (?).
franta-hg@18
     1
#!/bin/bash
franta-hg@18
     2
franta-hg@109
     3
echo "SQL-DK";
franta-hg@18
     4
echo -n "Mercurial: "; hg identify || echo "n/a";
franta-hg@18
     5
echo -n "Compiled:  "; date --rfc-3339=seconds;
franta-hg@109
     6
echo "
franta-hg@109
     7
Copyright © 2013 Ing. František Kučera a.k.a. <xkucf03/> 
franta-hg@109
     8
https://sql-dk.globalcode.info/ https://frantovo.cz/
franta-hg@109
     9
SQL-DK is free softare. You may redistribute copies of SQL-DK
franta-hg@109
    10
under the terms of the GNU General Public License v3+.
franta-hg@109
    11
For more information about these matters, run with option: --license";