@@ -601,7 +601,7 @@ if(isNumeric(datasource.connectionLimit))optional.append('connectionLimit:#datas
601601if (datasource .connectionTimeout NEQ 1 )optional .append (' connectionTimeout:#datasource .connectionTimeout # // default: 1; unit: minutes' );
602602if (isNumeric (datasource .liveTimeout ) && datasource .liveTimeout > 0 )optional .append (' liveTimeout:#datasource .liveTimeout # // default: -1; unit: minutes' );
603603if (datasource .metaCacheTimeout NEQ 60000 )optional .append (' ,metaCacheTimeout:#datasource .metaCacheTimeout # // default: 60000; unit: milliseconds' );
604- if (len (datasource .timezone ))optional .append (" timezone:'#replace (datasource .timezone ," '" ," ''" ," all" ) #'" );
604+ if (len (datasource .timezone ))optional .append (" timezone:'#replace (datasource .timezone ," '" ," ''" ," all" ) #' // default is same as lucee instance " );
605605if (datasource .storage ) optional .append (' storage:#datasource .storage # // default: false' );
606606if (datasource .readOnly ) optional .append (' readOnly:#datasource .readOnly # // default: false' );
607607if (! isNull (driver .literalTimestampWithTSOffset ) && driver .literalTimestampWithTSOffset ())
@@ -627,7 +627,8 @@ this.datasources["#datasource.name#"] = {
627627 password: "#datasource .passwordEncrypted #",<cfif optional .len () >
628628
629629 // optional settings
630- <cfloop array =" #optional #" index =" i" item =" value" >#replace (value , " // default" , " , // default" ) #<cfif i LT optional .len () >
630+ <cfloop array =" #optional #" index =" i" item =" value" ><cfif i LT optional .len () >#replace (value , " // default" , " , // default" ) #
631+ <cfelse >#value #
631632 </cfif ></cfloop ></cfif >
632633};
633634</cfsavecontent >
@@ -636,4 +637,4 @@ this.datasources["#datasource.name#"] = {
636637
637638
638639 </cfif >
639- </cfoutput >
640+ </cfoutput >
0 commit comments