Skip to content

Commit 9c4c96a

Browse files
author
guangninge
committed
修改record_table_length的tmp_column_length
1 parent e7cfa1b commit 9c4c96a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rule_analysis/rule/obj/table_record_length.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def execute_rule(**kwargs):
6262
character_octet_length = rec_col[2]
6363
numeric_precision = rec_col[3]
6464
numeric_scale = rec_col[4]
65-
tmp_column_length = tmp_column_length + f_get_byte_length(data_type, character_octet_length, numeric_precision, numeric_scale)
65+
if tmp_column_length:
66+
tmp_column_length = tmp_column_length + f_get_byte_length(data_type, character_octet_length, numeric_precision, numeric_scale)
6667

6768
if tmp_column_length > record_length:
6869
return_tabs.append([rec_tab[0], rec_tab[1], tmp_column_length])

0 commit comments

Comments
 (0)