Skip to content

Commit 1a358bb

Browse files
committed
Fix usage of mp-sql-builder and also update interface re: node-machine/driver-interface@1426000
1 parent 6ed594e commit 1a358bb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

machines/compile-statement.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ module.exports = {
3636
outputVariableName: 'report',
3737
outputDescription: 'The `nativeQuery` property is the compiled native query for the database. The `meta` property is reserved for custom adapter-specific extensions.',
3838
example: {
39-
nativeQuery: '===',
39+
nativeQuery: '*',
4040
meta: '==='
4141
}
4242
},
@@ -68,7 +68,8 @@ module.exports = {
6868
fn: function (inputs, exits) {
6969
var SQLBuilder = require('machinepack-sql-builder');
7070

71-
SQLBuilder.generateQuery({
71+
SQLBuilder.generateSql({
72+
dialect: 'postgresql',
7273
query: inputs.statement
7374
}).exec({
7475
error: function error(err) {

0 commit comments

Comments
 (0)