Skip to content

Commit 579b35b

Browse files
committed
Rename 'columns' to 'keys' for consistency (i.e. because some databses such as mysql don't provide access to the column name- just the named key/constraint)
1 parent bb66cfc commit 579b35b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

machines/parse-native-query-error.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@ module.exports = {
8383
if (err.code === '23505') {
8484
footprint.identity = 'notUnique';
8585
// Now manually extract the relevant bits of the error message
86-
// to build our footprint's `columns` property:
87-
footprint.columns = [];
86+
// to build our footprint's `keys` property:
87+
footprint.keys = [];
8888
if ( util.isString(err.detail) ) {
8989
var matches = err.detail.match(/Key \((.*)\)=\((.*)\) already exists\.$/);
90-
footprint.columns.push(matches[1]);
90+
footprint.keys.push(matches[1]);
9191
}
9292
}
9393
break;

0 commit comments

Comments
 (0)