Skip to content
Permalink
Browse files

fixed #887 id column to have regular bigint type at SphinxQL reply

  • Loading branch information...
tomatolog committed May 29, 2019
1 parent 7067f9e commit 2a30d5b49d76faab031d195f533974938769b8e6
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/searchd.cpp
@@ -15591,7 +15591,7 @@ void SendMysqlSelectResult ( SqlRowBuffer_c & dRows, const AggrResult_t & tRes,
// in case there are no matches, send a dummy schema
// result set header packet. We will attach EOF manually at the end.
dRows.HeadBegin ( bAddQueryColumn ? 2 : 1 );
dRows.HeadColumn ( "id", MYSQL_COL_LONGLONG, MYSQL_COL_UNSIGNED_FLAG );
dRows.HeadColumn ( "id", MYSQL_COL_LONGLONG, 0 );
} else
{
int iAttrsToSend = tAttrsToSend.BitCount();
@@ -15619,7 +15619,7 @@ void SendMysqlSelectResult ( SqlRowBuffer_c & dRows, const AggrResult_t & tRes,
default:
break;
}
dRows.HeadColumn ( tCol.m_sName.cstr(), eType, tCol.m_sName=="id" ? MYSQL_COL_UNSIGNED_FLAG : 0 );
dRows.HeadColumn ( tCol.m_sName.cstr(), eType, 0 );
}
}

0 comments on commit 2a30d5b

Please sign in to comment.
You can’t perform that action at this time.