Revision 3460
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_io.py | ||
---|---|---|
92 | 92 |
|
93 | 93 |
assert not isinstance(col, sql_gen.NamedCol) |
94 | 94 |
|
95 |
function_name = type_
|
|
95 |
function_name = strings.first_word(type_)
|
|
96 | 96 |
srcs = col.srcs |
97 | 97 |
save_errors = (errors_table != None and isinstance(col, sql_gen.Col) |
98 | 98 |
and col.srcs != ()) |
Also available in: Unified diff
sql_io.py: cast(): Just use the first word of the type in the function name to help avoid name collisions. Note that type name collisions that may be introduced by this change are not a problem because the function name is versioned. (The caching mechanism prevents versioning when the function has the same name and definition as an already-defined function.)