@itrocks/mysql 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/mysql.js +2 -2
- package/esm/mysql.js +2 -2
- package/package.json +1 -1
package/cjs/mysql.js
CHANGED
|
@@ -134,8 +134,8 @@ class Mysql extends storage_1.DataSource {
|
|
|
134
134
|
: property.name;
|
|
135
135
|
const columnName = depends.columnOf(propertyName);
|
|
136
136
|
sql.push((columnName.length !== propertyName.length)
|
|
137
|
-
? columnName + ' ' + propertyName
|
|
138
|
-
: propertyName);
|
|
137
|
+
? ('`' + columnName + '` `' + propertyName + '`')
|
|
138
|
+
: ('`' + propertyName + '`'));
|
|
139
139
|
}
|
|
140
140
|
return sql.join(', ');
|
|
141
141
|
}
|
package/esm/mysql.js
CHANGED
|
@@ -129,8 +129,8 @@ export class Mysql extends DataSource {
|
|
|
129
129
|
: property.name;
|
|
130
130
|
const columnName = depends.columnOf(propertyName);
|
|
131
131
|
sql.push((columnName.length !== propertyName.length)
|
|
132
|
-
? columnName + ' ' + propertyName
|
|
133
|
-
: propertyName);
|
|
132
|
+
? ('`' + columnName + '` `' + propertyName + '`')
|
|
133
|
+
: ('`' + propertyName + '`'));
|
|
134
134
|
}
|
|
135
135
|
return sql.join(', ');
|
|
136
136
|
}
|
package/package.json
CHANGED