Skip to content

Commit 769fde9

Browse files
committed
mysql fetch fix, dub.json subpackage disable
1 parent 776547e commit 769fde9

2 files changed

Lines changed: 4 additions & 25 deletions

File tree

dub.json

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,6 @@
44
"copyright": "Copyright © 2015, Erik Smith",
55
"authors": ["Erik Smith"],
66
"license": "MIT",
7-
"dependencies": {
8-
"dstddb:mysql": "*",
9-
"dstddb:odbc": "*",
10-
"dstddb:oracle": "*",
11-
"dstddb:postgres": "*",
12-
"dstddb:reference": "*",
13-
"dstddb:sqlite": "*",
14-
"dstddb:util": "*",
15-
"dstddb:vibe": "*",
16-
"dstddb:webscalesql": "*",
17-
},
18-
"subPackages": [
19-
"./mysql/",
20-
"./odbc/",
21-
"./oracle/",
22-
"./postgres/",
23-
"./reference/",
24-
"./sqlite/",
25-
"./util/",
26-
"./vibe/",
27-
"./webscalesql/"
28-
],
7+
"sourcePaths": [".", "src"],
298
}
309

src/std/database/mysql/database.d

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ auto createDatabase(T)(string defaultURI="") {
4646

4747
private static bool isError()(int ret) {
4848
return
49-
ret != 0 &&
50-
ret != MYSQL_NO_DATA &&
51-
ret != MYSQL_DATA_TRUNCATED;
49+
!(ret == 0 ||
50+
ret == MYSQL_NO_DATA ||
51+
ret == MYSQL_DATA_TRUNCATED);
5252
}
5353

5454
private static T* check(T)(string msg, T* ptr) {

0 commit comments

Comments
 (0)