mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
Update sphinx_make.py
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user