소스 검색

fix: resolved conflicts in database.py

version-14
Shariq Ansari 3 년 전
committed by GitHub
부모
커밋
5c6c9bb5c4
No known key found for this signature in database 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


불러오는 중...
취소
저장