From d7d320fad8c8450cccadd0c0ef93d3d8c0a3da49 Mon Sep 17 00:00:00 2001 From: Olaf van der Spek Date: Mon, 24 Oct 2016 22:10:58 +0200 Subject: [PATCH] Don't require sql_host, user and pass to be set MySQL has sane defaults.. --- src/indexer.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/indexer.cpp b/src/indexer.cpp index 3d136ad2e..e4e7750cc 100644 --- a/src/indexer.cpp +++ b/src/indexer.cpp @@ -569,9 +569,6 @@ bool SqlParamsConfigure ( CSphSourceParams_SQL & tParams, const CSphConfigSectio { if ( !hSource.Exists("odbc_dsn") ) // in case of odbc source, the host, user, pass and db are not mandatory, since they may be already defined in dsn string. { - LOC_CHECK ( hSource, "sql_host", "in source '%s'", sSourceName ); - LOC_CHECK ( hSource, "sql_user", "in source '%s'", sSourceName ); - LOC_CHECK ( hSource, "sql_pass", "in source '%s'", sSourceName ); LOC_CHECK ( hSource, "sql_db", "in source '%s'", sSourceName ); } LOC_CHECK ( hSource, "sql_query", "in source '%s'", sSourceName );