From 390df934771716edcb9b13b3fa3adb0f0fce9874 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 19 May 2024 18:20:55 +0800 Subject: [PATCH] Update sphinx_make.py --- plugins/sphinx/class/sphinx_make.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/sphinx/class/sphinx_make.py b/plugins/sphinx/class/sphinx_make.py index 2609030e8..c90b23543 100644 --- a/plugins/sphinx/class/sphinx_make.py +++ b/plugins/sphinx/class/sphinx_make.py @@ -267,11 +267,15 @@ def makeSqlToSphinxTable(pdb,db,table,pkey_name): conf += '\tsql_attr_float = '+ column_name + "\n" continue - if mw.inArray(['varchar','char'], data_type): - run_pos += 1 + if mw.inArray(['char'], data_type): conf += '\tsql_attr_string = '+ column_name + "\n" continue + if mw.inArray(['varchar'], data_type): + run_pos += 1 + conf += '\tsql_field_string = '+ column_name + "\n" + continue + if mw.inArray(['text','mediumtext','tinytext','longtext'], data_type): run_pos += 1 conf += '\tsql_field_string = '+ column_name + "\n"