Skip to content
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

add more type support. #13

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ff2b6d0
Merge pull request #1 from cruisercoder/master
dushibaiyu Jun 28, 2016
a4dc7cf
add type
dushibaiyu Jun 30, 2016
601bb38
has over when free ruset
dushibaiyu Jul 1, 2016
94485b7
add more type support
dushibaiyu Jul 4, 2016
7fc4dc4
up gitignore
dushibaiyu Jul 4, 2016
eca9f91
rm kdev4 project file
dushibaiyu Jul 4, 2016
9a21820
rm .kdev4
dushibaiyu Jul 4, 2016
da4ef68
fmt style
dushibaiyu Jul 4, 2016
ce062ba
add pgsql more type support
dushibaiyu Jul 4, 2016
027b915
dfmt style
dushibaiyu Jul 4, 2016
3a73559
fix bool value
dushibaiyu Jul 4, 2016
5c60494
add sqlite type support
dushibaiyu Jul 4, 2016
4b54dca
add mysql bold
dushibaiyu Jul 4, 2016
a17a021
fix Converter
dushibaiyu Jul 5, 2016
0c0c05f
rm ValueType.Variant
dushibaiyu Jul 5, 2016
bab61ff
mysql and sqlite unittest
dushibaiyu Jul 5, 2016
4b08d98
postgres unittest
dushibaiyu Jul 5, 2016
485808f
add ValueType.UNKnown
dushibaiyu Jul 5, 2016
74c99ef
add dbType to get the db type
dushibaiyu Jul 6, 2016
287c045
mysql has field.name_length
dushibaiyu Jul 6, 2016
01f69ee
add Value get Cell, and fix get(T)()
dushibaiyu Jul 7, 2016
0ad85f4
fix dbtype() return value
dushibaiyu Jul 7, 2016
ed0daea
fix error
dushibaiyu Jul 7, 2016
8c2295d
rm log in ~this()
dushibaiyu Jul 7, 2016
2e441d5
add mysql error show
dushibaiyu Jul 11, 2016
7057c98
fix style
dushibaiyu Jul 11, 2016
9902956
fix mysql max data and raw
dushibaiyu Jul 12, 2016
4771d95
fix date allo size litte
dushibaiyu Jul 12, 2016
3092c36
fix postgers connect and erro message
dushibaiyu Jul 12, 2016
7c07b6a
postgresql fix
dushibaiyu Jul 12, 2016
3f9a84a
Update dub.json
zoujiaqing Jul 12, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix error
  • Loading branch information
dushibaiyu committed Jul 7, 2016
commit ed0daea1192534d0e56a4f8954f1bd6ffae7afb4
2 changes: 1 addition & 1 deletion src/std/database/front.d
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ struct BasicValue(D, P) {
try{
return Nullable!T(as!T);
}catch{
return Nullable!T;
return Nullable!T();
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/std/database/odbc/database.d
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ struct Driver(Policy) {

Variant getValue(Cell* cell) {
Variant = value;
if (cell.bind.type = ValueType.String) {
if (cell.bind.type == ValueType.String) {
auto ptr = cast(immutable char*) cell.bind.data;
value = cast(string) ptr[0 .. cell.bind.len];
}
Expand Down