Fixed some property syntax issues.

This commit is contained in:
Robert Klotzner 2012-11-26 21:49:57 +01:00
parent 0d8478592d
commit 5b38e9d7e0
2 changed files with 9 additions and 9 deletions

View File

@ -38,7 +38,7 @@ interface Database {
a = to!string(e);
} else if (arg == typeid(null)) {
a = null;
} else assert(0, "invalid type " ~ arg.toString );
} else assert(0, "invalid type " ~ arg.toString() );
args ~= Variant(a);
}
@ -114,7 +114,7 @@ struct Row {
}
int opApply(int delegate(ref string, ref string) dg) {
foreach(a, b; toAA)
foreach(a, b; toAA())
mixin(yield("a, b"));
return 0;
@ -134,10 +134,10 @@ interface ResultSet {
string[] fieldNames();
// this is a range that can offer other ranges to access it
bool empty();
Row front();
void popFront();
int length();
bool empty() @property;
Row front() @property;
void popFront() ;
int length() @property;
/* deprecated */ final ResultSet byAssoc() { return this; }
}
@ -164,7 +164,7 @@ class SelectBuilder : SqlBuilder {
int limit;
int limitStart;
string toString() {
override string toString() {
string sql = "SELECT ";
// the fields first
@ -443,7 +443,7 @@ string fixupSqlForDataObjectUse(string sql, string[string] keyMapping = null) {
auto from = sql[start..i];
auto pieces = from.split(",");
foreach(p; pieces) {
p = p.strip;
p = p.strip();
start = 0;
i = 0;
while(i < p.length && p[i] != ' ' && p[i] != '\n' && p[i] != '\t' && p[i] != ',')

View File

@ -84,7 +84,7 @@ class PostgresResult : ResultSet {
void popFront() {
position++;
if(position < numRows)
fetchNext;
fetchNext();
}
int length() {