-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify update statement support for JDBC connectors
- Loading branch information
1 parent
6858091
commit 63829b1
Showing
9 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
docs/src/main/sphinx/connector/sql-update-limitation.fragment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
### UPDATE | ||
|
||
Only `UPDATE` statements with constant assignments and predicates are | ||
supported. For example, the following statement is supported because the values | ||
assigned are constants: | ||
|
||
```sql | ||
UPDATE table SET col1 = 1 WHERE col3 = 1 | ||
``` | ||
|
||
Arithmetic expressions, function calls, and other non-constant `UPDATE` | ||
statements are not supported. For example, the following statement is not | ||
supported because arithmetic expressions cannot be used with the `SET` | ||
command: | ||
|
||
```sql | ||
UPDATE table SET col1 = col2 + 2 WHERE col3 = 1 | ||
``` | ||
|
||
The `=`, `!=`, `>`, `<`, `>=`, `<=`, `IN`, `NOT IN` operators are supported in | ||
predicates. The following statement is not supported because the `AND` operator | ||
cannot be used in predicates: | ||
|
||
```sql | ||
UPDATE table SET col1 = 1 WHERE col3 = 1 AND col2 = 3 | ||
``` | ||
|
||
All column values of a table row cannot be updated simultaneously. For a three | ||
column table, the following statement is not supported: | ||
|
||
```sql | ||
UPDATE table SET col1 = 1, col2 = 2, col3 = 3 WHERE col3 = 1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters