-
Notifications
You must be signed in to change notification settings - Fork 7
Feature/diesel 2.0 #33
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
Merged
pgab
merged 12 commits into
fix_binary_double_byte_order_giga_head_cherries
from
feature/diesel_2.0
Dec 17, 2019
Merged
Changes from 5 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
595caa3
Merge pull request #31 from GiGainfosystems/fix_binary_double_byte_or…
geomaniac 595062f
Port diesel-oci to diesel-master branch(with a few patches)
weiznich e08794c
Replace `HasSqlType::row_metadata` with some own function
weiznich 7517c92
Implement new methods on `Row`
weiznich e5a22a6
Add Datatype information to `OracleValue`
weiznich fbc333f
Update cargo.toml to our diesel master branch
weiznich 5063979
Move raw sql fragments into own file + fix typo
weiznich 65bf551
Add missing file for limit/offset
weiznich 1fadca2
Use newer nightly
weiznich bc8cc35
re_rebalance_coherence is stable on this nightly :tada:
weiznich 4784c0d
Specialize the `FromSql<Text>` impl to fix tests
weiznich 54ec3d4
adjusting the tests to the new rust version, also remove double `;`
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| nightly-2019-07-02 | ||
| nightly-2019-10-03 |
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 was deleted.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -1,10 +1,17 @@ | ||
| use oracle::types::OciDataType; | ||
|
|
||
| #[derive(Debug)] | ||
| pub struct OracleValue { | ||
| pub(crate) bytes: [u8], | ||
| pub struct OracleValue<'a> { | ||
| pub(crate) bytes: &'a [u8], | ||
| tpe: OciDataType, | ||
| } | ||
|
|
||
| impl OracleValue { | ||
| pub fn new(bytes: &[u8]) -> &Self { | ||
| unsafe { &*(bytes as *const [u8] as *const Self) } | ||
| impl<'a> OracleValue<'a> { | ||
| pub fn new(bytes: &'a [u8], tpe: OciDataType) -> Self { | ||
| Self { bytes, tpe } | ||
| } | ||
|
|
||
| pub fn datatype(&self) -> OciDataType { | ||
| self.tpe | ||
| } | ||
| } |
Oops, something went wrong.
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.
The
\probably needs to be deleted.