-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from hydradatabase/propagate_execution_error
Check for error and report the error on the result of `quackScanState->preparedStatement->Execute()`
- Loading branch information
Showing
4 changed files
with
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
create table int_as_varchar(a varchar); | ||
insert into int_as_varchar SELECT * from ( | ||
VALUES | ||
('abc') | ||
) t(a); | ||
select a::INTEGER from int_as_varchar; | ||
ERROR: Quack execute returned an error: Conversion Error: Could not convert string 'abc' to INT32 | ||
LINE 1: select a::INTEGER from int_as_varchar; | ||
^ |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
test: basic | ||
test: search_path | ||
test: execution_error | ||
test: type_support |
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,7 @@ | ||
create table int_as_varchar(a varchar); | ||
insert into int_as_varchar SELECT * from ( | ||
VALUES | ||
('abc') | ||
) t(a); | ||
|
||
select a::INTEGER from int_as_varchar; |