aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/d2sqlite3/source
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext_depends/d2sqlite3/source')
-rw-r--r--src/ext_depends/d2sqlite3/source/d2sqlite3/database.d8
-rw-r--r--src/ext_depends/d2sqlite3/source/d2sqlite3/statement.d12
2 files changed, 10 insertions, 10 deletions
diff --git a/src/ext_depends/d2sqlite3/source/d2sqlite3/database.d b/src/ext_depends/d2sqlite3/source/d2sqlite3/database.d
index 7aebe63..93a6509 100644
--- a/src/ext_depends/d2sqlite3/source/d2sqlite3/database.d
+++ b/src/ext_depends/d2sqlite3/source/d2sqlite3/database.d
@@ -1184,7 +1184,7 @@ version (_UnlockNotify)
/// Unlocks the handler, state is one of SQLITE_LOCKED or SQLITE_OK
void emit(int res) nothrow
in { assert(res == SQLITE_LOCKED || res == SQLITE_OK); }
- body
+ do
{
try
{
@@ -1208,7 +1208,7 @@ version (_UnlockNotify)
/// Result after wait is finished
@property int result() const
out (result) { assert(result == SQLITE_OK || result == SQLITE_LOCKED); }
- body { return res; }
+ do { return res; }
}
}
else
@@ -1238,7 +1238,7 @@ version (_UnlockNotify)
/// Constructor
this(Duration max = 1000.msecs)
in { assert(max > Duration.zero); }
- body
+ do
{
maxDuration = max;
}
@@ -1271,7 +1271,7 @@ version (_UnlockNotify)
/// Result after wait is finished
@property int result() const
out (result) { assert(result == SQLITE_OK || result == SQLITE_LOCKED); }
- body
+ do
{
return res;
}
diff --git a/src/ext_depends/d2sqlite3/source/d2sqlite3/statement.d b/src/ext_depends/d2sqlite3/source/d2sqlite3/statement.d
index 14fe855..8cf6a38 100644
--- a/src/ext_depends/d2sqlite3/source/d2sqlite3/statement.d
+++ b/src/ext_depends/d2sqlite3/source/d2sqlite3/statement.d
@@ -162,7 +162,7 @@ public:
{
assert(index > 0 && index <= p.paramCount, "parameter index out of range");
}
- body
+ do
{
assert(p.handle);
@@ -239,7 +239,7 @@ public:
{
assert(name.length);
}
- body
+ do
{
assert(p.handle);
auto index = sqlite3_bind_parameter_index(p.handle, name.toStringz);
@@ -255,7 +255,7 @@ public:
{
assert(Args.length == this.parameterCount, "parameter count mismatch");
}
- body
+ do
{
foreach (index, _; Args)
bind(index + 1, args[index]);
@@ -342,7 +342,7 @@ public:
static if (__traits(compiles, obj.length))
assert(obj.length == this.parameterCount, "parameter count mismatch");
}
- body
+ do
{
static if (__traits(compiles, { foreach (string k, ref v; obj) {} }))
{
@@ -377,7 +377,7 @@ public:
{
assert(index > 0 && index <= p.paramCount, "parameter index out of range");
}
- body
+ do
{
assert(p.handle);
return sqlite3_bind_parameter_name(p.handle, index).to!string;
@@ -394,7 +394,7 @@ public:
{
assert(name.length);
}
- body
+ do
{
assert(p.handle);
return sqlite3_bind_parameter_index(p.handle, name.toStringz);