111 |
except ValueError: |
except ValueError: |
112 |
raise TypecastError |
raise TypecastError |
113 |
|
|
114 |
|
####################################################### |
115 |
|
# |
116 |
|
# Join condition type |
117 |
|
# |
118 |
|
# This is for typecasting join conditions types |
119 |
|
# |
120 |
|
####################################################### |
121 |
|
def joinConditionType (value): |
122 |
|
if value: |
123 |
|
value = str(value).lower() |
124 |
|
if value in ['inner','left','right','full']: |
125 |
|
return value |
126 |
|
else: |
127 |
|
raise TypecastError |
128 |
|
|
129 |
|
|
130 |
####################################################### |
####################################################### |
131 |
# |
# |