builder.pg avro_schema
This commit is contained in:
@@ -37,6 +37,9 @@
|
||||
<cfcase value="date,time,datetime">
|
||||
<cfreturn "CF_SQL_TIMESTAMP"/>
|
||||
</cfcase>
|
||||
<cfcase value="guid">
|
||||
<cfreturn "CF_SQL_OTHER"/>
|
||||
</cfcase>
|
||||
<cfcase value="string">
|
||||
<cfreturn "CF_SQL_VARCHAR"/>
|
||||
</cfcase>
|
||||
|
||||
@@ -74,6 +74,13 @@ arrayAppend(array,item) механически заменил на listAppend(li
|
||||
</cfif>
|
||||
</cfcase>
|
||||
|
||||
<cfcase value="guid">
|
||||
<cfset element=trim(element)>
|
||||
<cfif NOT isValid('guid',element)>
|
||||
<cfset element=def/>
|
||||
</cfif>
|
||||
</cfcase>
|
||||
|
||||
<cfcase value="date">
|
||||
<cftry>
|
||||
<cfset element=CreateDateTime(ListGetAt(element,3,'.'), ListGetAt(element,2,'.'), ListGetAt(element,1,'.'),0,0,0)>
|
||||
|
||||
Reference in New Issue
Block a user