ソースを参照

fix: resolved conflicts in database.py

version-14
Shariq Ansari 3年前
committed by GitHub
コミット
5c6c9bb5c4
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更0行の追加8行の削除
  1. +0
    -8
      frappe/database/database.py

+ 0
- 8
frappe/database/database.py ファイルの表示

@@ -116,19 +116,11 @@ class Database(object):

"""
query = str(query)
<<<<<<< HEAD
if not run:
return query
=======

<<<<<<< HEAD
# remove \n \t from start of query and replace them with space anywhere in middle
query = re.sub(r'\s', ' ', query).lstrip()
>>>>>>> ac5effc7dd (fix: remove tab \t and newlines \n from start of query and remove from middle)
=======
# remove \n \t from start and end of query
query = re.sub(r'^\s*|\s*$', '', query)
>>>>>>> 7bb172365f (fix: only remove \n\t from start and end)

if re.search(r'ifnull\(', query, flags=re.IGNORECASE):
# replaces ifnull in query with coalesce


読み込み中…
キャンセル
保存