• R/O
  • SSH
  • HTTPS

format-sql: Commit


Commit MetaInfo

Revision75 (tree)
Time2018-09-03 20:50:54
Authorkimur058

Log Message

join句の整形内容を変更(途中で改行しない)

Change Summary

Incremental Difference

--- trunk/DMLBreaker3.x/DMLBreaker.js (revision 74)
+++ trunk/DMLBreaker3.x/DMLBreaker.js (revision 75)
@@ -410,22 +410,22 @@
410410 } else if (wkAdd.match(/ (inner|right|cross) join /i) != null) {
411411
412412 formatSql += wkAdd.substring(0, wkAdd.length - 11) + "\n" + tab + wkAdd.slice(-11);
413- wkAdd = "\n\t" + tab;
413+ wkAdd = "";
414414
415415 } else if (wkAdd.match(/ (left|full) join /i) != null) {
416416
417417 formatSql += wkAdd.substring(0, wkAdd.length - 10) + "\n" + tab + wkAdd.slice(-10);
418- wkAdd = "\n\t" + tab;
418+ wkAdd = "";
419419
420420 } else if (wkAdd.match(/ right outer join /i) != null) {
421421
422422 formatSql += wkAdd.substring(0, wkAdd.length - 17) + "\n" + tab + wkAdd.slice(-17);
423- wkAdd = "\n\t" + tab;
423+ wkAdd = "";
424424
425425 } else if (wkAdd.match(/ (left|full) outer join /i) != null) {
426426
427427 formatSql += wkAdd.substring(0, wkAdd.length - 16) + "\n" + tab + wkAdd.slice(-16);
428- wkAdd = "\n\t" + tab;
428+ wkAdd = "";
429429
430430 } else if (wkAdd.match(/ on /i) != null) {
431431
Show on old repository browser