MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / AttachmentNameToSQL

Function AttachmentNameToSQL

src/database/WizIndex.cpp:2319–2326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2317}
2318
2319CString AttachmentNameToSQL(const CString& strName)
2320{
2321 if (strName.isEmpty())
2322 return strName;
2323
2324 CString strWhere = WizFormatString1("DOCUMENT_GUID in (select distinct DOCUMENT_GUID from WIZ_DOCUMENT_ATTACHMENT where ATTACHMENT_NAME like %1)", STR2SQL_LIKE_BOTH(strName));
2325 return strWhere;
2326}
2327
2328CString HasAttachmentToSQL(int nAttachment)
2329{

Callers 2

TitleToSQLFunction · 0.85
searchMethod · 0.85

Calls 2

WizFormatString1Function · 0.85
isEmptyMethod · 0.80

Tested by

no test coverage detected