Showing 1 of 1 files from the diff.

@@ -30,14 +30,13 @@
Loading
30 30
/// INSERT-like argument
31 31
auto i(string statementArgName, T)(T value)
32 32
{
33 -
    //FIXME: wrong way quotes adding
34 -
    return Arg!(ArgLikeIn.INSERT, '"'~statementArgName~'"', T)(value);
33 +
    return Arg!(ArgLikeIn.INSERT, statementArgName, T)(value);
35 34
}
36 35
37 36
/// UPDATE-like argument
38 37
auto u(string statementArgName, T)(T value)
39 38
{
40 -
    return Arg!(ArgLikeIn.UPDATE, '"'~statementArgName~'"', T)(value);
39 +
    return Arg!(ArgLikeIn.UPDATE, statementArgName, T)(value);
41 40
}
42 41
43 42
/// Argument representing dollar, usable in SELECT statements
@@ -58,11 +57,12 @@
Loading
58 57
59 58
private string dollarsString(size_t num)
60 59
{
61 -
    string ret; //TODO: replace by compile-time enum string
60 +
    string ret;
62 61
63 62
    foreach(i; 1 .. num+1)
64 63
    {
65 -
          ret ~= `$`~i.to!string; //TODO: appender or CT
64 +
          ret ~= `$`;
65 +
          ret ~= i.to!string;
66 66
67 67
          if(i < num)
68 68
                ret ~= `,`;
@@ -100,9 +100,9 @@
Loading
100 100
private string escapeName(string s, Connection conn)
101 101
{
102 102
    if(conn !is null)
103 -
        s = conn.escapeIdentifier(s);
104 -
105 -
    return s;
103 +
        return conn.escapeIdentifier(s);
104 +
    else
105 +
        return '"'~s~'"';
106 106
}
107 107
108 108
private QueryParams parseSqlCmd(SQL_CMD...)(SQL_CMD sqlCmd, Connection conn)
Files Coverage
src/dpq2 56.25%
integration_tests/integration_tests.d 0.00%
Project Totals (20 files) 56.00%
1200.17
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading