-
Notifications
You must be signed in to change notification settings - Fork 30
[WIP] Improve windows support #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
auterium
wants to merge
68
commits into
bluejekyll:master
Choose a base branch
from
KeyrockEU:improve-windows-support
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
fe58529
Use correct data type in unix
auterium 4693cf6
Merge branch 'master' of https://github.com/bluejekyll/pg-extend-rs
auterium 3feffa9
Merge branch 'master' of https://github.com/bluejekyll/pg-extend-rs
auterium e55b2d8
fixup build script to properly support features
bluejekyll 1cdfccd
cleanup Makefile, reduce duplicate definitions
bluejekyll 0fab9ea
Merge branch 'master' of https://github.com/bluejekyll/pg-extend-rs
auterium 095dc80
Merge branch 'improve-test-feature-execution' of https://github.com/b…
auterium 5a164c4
revert sgjmp changes
bluejekyll 9090d45
test dedupped environment variables
bluejekyll 9acc1c9
use decoded variables
bluejekyll 1dbce10
cleanliness should wait for postgres builds
bluejekyll 78a19ea
Merge branch 'improve-test-feature-execution' of https://github.com/b…
auterium 3a7513f
restart PG between tests
bluejekyll 7e6c36f
remove deps-cache, was too large to cache
bluejekyll 66b329e
check connectivity after start
bluejekyll a07e53a
try to delay after file copies in tests
bluejekyll dfc4913
add some logging information on failure
bluejekyll 4247c44
add extra debug info to pg
bluejekyll b6db880
ensure all tests are single threaded against PG
bluejekyll eef7e02
only run the adding_tests, narrowing down the issue on linux
bluejekyll a70ffd9
reenable logging tests
bluejekyll 7899ef6
double check that logging is the issue
bluejekyll 7a21080
stop copying file to tmp
bluejekyll fc92097
remove cargo cache from CI, not working
bluejekyll 54e096f
see if panicking tests also cause issues
bluejekyll 60ba457
retest with logging enabled
bluejekyll 1178224
Merge branch 'improve-test-feature-execution' of https://github.com/b…
auterium 26fc01d
add back all tests
bluejekyll 86b1537
remove parallel restrictions
bluejekyll f661b0d
change clippy to do entire workspace in one go
bluejekyll 1c635d4
remove sleeps
bluejekyll 2da1a60
Merge branch 'improve-test-feature-execution' of https://github.com/b…
auterium 776921e
Add array support
auterium fb5bb60
Example for array sum
auterium 8501f81
Fix array support
auterium 581de6d
Remove dependency on slice_cast crate
auterium 254f518
Merge branch 'master' of https://github.com/bluejekyll/pg-extend-rs i…
auterium d2f380f
Merge branch 'master' of https://github.com/bluejekyll/pg-extend-rs
auterium 2f21d21
DRY
auterium b66204a
Improve docs wording & hide try_cast from docs
auterium f816edf
Limit slices support to primitive numbers only
auterium 02a97da
Revert wrapper
auterium 9478c88
Add back missing assertion
auterium 8f0d58e
Fix missplaced assertion
auterium f394ec1
Fix indentation
auterium 14e3c60
Comments & doc hidding of new trait
auterium f6c0463
Set bool_ type for macos
auterium a465218
Revert type override
auterium a95580f
Try conditional override for MacOS on PG12
auterium 9046014
Init with pgbool!()
auterium 632b90a
bool_ type for pg11 in macos
auterium e6d7bed
Set bool_ type for unix familty
auterium 6a47166
Make clippy happy
auterium ec56a44
Cargo fmt
auterium 59f45d6
Remove bogus implementation
auterium 360c479
DetoastedArrayWrapper with drop for memory free
auterium 5a75777
Make clippy happy
auterium ecda157
Fix format
auterium 0c13ccb
Proper generation of create statements with arrays
auterium fa59df4
Integration tests for array sums
auterium b594ec2
Cargo fmt
auterium ef1b691
Use stdbool.h
auterium 349c2c0
Improve create stmt generation
auterium a2ea1c9
Fix arrays support for Windows builds
auterium ad4fea3
Merge branch 'master' of https://github.com/bluejekyll/pg-extend-rs
auterium dc42a13
Merge branch 'master' into improve-windows-support
auterium 0a6ec37
Soundness
auterium 97ab100
Rust fmt
auterium File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -211,11 +211,8 @@ fn sql_function_options(arg_types: &[Type]) -> TokenStream { | |
quote!( | ||
{ | ||
let optional_args = [ #( <#arg_types>::is_option() ),* ]; | ||
if optional_args.iter().all(|&x| x) { "" } | ||
else if !optional_args.iter().any(|&x| x) { " STRICT" } | ||
else { | ||
panic!("Cannot mix Option and non-Option arguments."); | ||
} | ||
if !optional_args.iter().any(|&x| x) { " STRICT" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This allows for mixing Option with non-Option arguments. |
||
else { "" } | ||
}, | ||
) | ||
} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When building, the resulting files will always use underscores, so we need to replace dashes with underscores, otherwise there's a mismatch