Skip to content

Commit 5a0009c

Browse files
committed
override tostring
1 parent 5a5acee commit 5a0009c

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/dub.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- { os: windows-latest, compiler: dmd-2.097.2 }
3434

3535
steps:
36-
- uses: actions/checkout@v2
36+
- uses: actions/checkout@v3
3737

3838
- name: Install D ${{ matrix.compiler }}
3939
uses: dlang-community/setup-dlang@v1
@@ -149,7 +149,7 @@ jobs:
149149
# --health-retries 3
150150

151151
steps:
152-
- uses: actions/checkout@v2
152+
- uses: actions/checkout@v3
153153

154154
- name: Install latest DMD
155155
uses: dlang-community/setup-dlang@v1

source/ddbc/common.d

+8
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,10 @@ class ParameterMetaDataImpl : ParameterMetaData {
473473
int isNullable(int param) { return col(param).isNullable; }
474474
/// Retrieves whether values for the designated parameter can be signed numbers.
475475
bool isSigned(int param) { return col(param).isSigned; }
476+
477+
override string toString() {
478+
return to!string(cols.map!(c => c.typeName).joiner(","));
479+
}
476480
}
477481

478482
/// Metadata for result set - to be used in driver implementations
@@ -527,6 +531,10 @@ class ResultSetMetaDataImpl : ResultSetMetaData {
527531
override bool isSigned(int column) { return col(column).isSigned; }
528532
// Indicates whether it is possible for a write on the designated column to succeed.
529533
override bool isWritable(int column) { return col(column).isWritable; }
534+
535+
override string toString() {
536+
return to!string(cols.map!(c => c.name).joiner(","));
537+
}
530538
}
531539

532540
version (unittest) {

0 commit comments

Comments
 (0)