Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java @ 874:0e304689c415
Correct the example in the comment.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 22 Feb 2024 20:08:16 +0100 (14 months ago) |
parents | 9ad9c8c38fe4 |
children | cd6e5449fb1a |
comparison
equal
deleted
inserted
replaced
873:90e9d216b232 | 874:0e304689c415 |
---|---|
1609 * the transaction to commit? I think this means something like: | 1609 * the transaction to commit? I think this means something like: |
1610 * | 1610 * |
1611 * <pre> | 1611 * <pre> |
1612 * CREATE TABLE T (A INT); | 1612 * CREATE TABLE T (A INT); |
1613 * INSERT INTO T (A) VALUES (2); | 1613 * INSERT INTO T (A) VALUES (2); |
1614 * BEGIN; | 1614 * BEGIN TRANSACTION; |
1615 * UPDATE T SET A = A + 1; | 1615 * UPDATE T SET A = A + 1; |
1616 * DROP TABLE IF EXISTS X; | |
1616 * CREATE TABLE X (A INT); | 1617 * CREATE TABLE X (A INT); |
1617 * SELECT A FROM T INTO X; | 1618 * INSERT INTO X AS SELECT A FROM T; |
1618 * COMMIT; | 1619 * SELECT A FROM X; |
1620 * ROLLBACK; | |
1621 * SELECT A FROM T; | |
1619 * </pre> | 1622 * </pre> |
1620 * | 1623 * |
1621 * does the CREATE TABLE call cause a commit? The answer is no. | 1624 * does the CREATE TABLE call cause a commit? The answer is no. |
1622 * | 1625 * |
1623 * @return true if so | 1626 * @return true if so |