|
HSQLDB example source code file (dsv-rejects.sql)
The HSQLDB dsv-rejects.sql source code
/*
* $Id: dsv-rejects.sql 307 2007-06-23 03:08:06Z unsaved $
*
* Tests proper rejection of bad DSV input records
*/
/** This is the default on UNIX.
* Our *.dsv test files are stored as binaries, so this is required
* to run tests on Windows: */
* *DSV_ROW_DELIM = \n
CREATE TABLE t (i INT, r REAL, d DATE, t TIMESTAMP, v VARCHAR, b BOOLEAN);
* *DSV_REJECT_REPORT = ${java.io.tmpdir}/sqltoolutst-${user.name}.html
\m dsv-rejects.dsv
SELECT COUNT(*) FROM t;
*if (*? != 2)
\q Should have imported 2 good DSV records, but imported *{?}
*end if
Other HSQLDB examples (source code examples)Here is a short list of links related to this HSQLDB dsv-rejects.sql source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.