Skip to content
Permalink
Browse files
Fix #392 output name of exceeding attr/field in xmlpipe indexing
  • Loading branch information
klirichek committed Aug 14, 2018
1 parent b1cd511 commit 156edc717dc63d3ea120f42466eba6e022da88be
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/sphinx.cpp
@@ -29039,8 +29039,12 @@ void CSphSource_XMLPipe2::Characters ( const char * pCharacters, int iLen )
} else
{
const char * szName = nullptr;
if ( m_iCurAttr!=-1 )
szName = ( m_iCurField!=-1 ) ? m_tSchema.GetFieldName(m_iCurField) : m_tSchema.GetAttr(m_iCurAttr).m_sName.cstr();
if ( m_iCurField!=-1 )
szName = m_tSchema.GetFieldName ( m_iCurField );
else if ( m_iCurAttr!=-1 )
szName = m_tSchema.GetAttr(m_iCurAttr).m_sName.cstr();

assert ( szName );

bool bWarned = false;
for ( int i = 0; i < m_dWarned.GetLength () && !bWarned; i++ )

0 comments on commit 156edc7

Please sign in to comment.