@@ -603,15 +603,15 @@ func (s *CreateDatabaseStatement) String() string {
603603 _ , _ = buf .WriteString (" WITH" )
604604 if s .RetentionPolicyDuration != nil {
605605 _ , _ = buf .WriteString (" DURATION " )
606- _ , _ = buf .WriteString (s .RetentionPolicyDuration . String ( ))
606+ _ , _ = buf .WriteString (FormatDuration ( * s .RetentionPolicyDuration ))
607607 }
608608 if s .RetentionPolicyReplication != nil {
609609 _ , _ = buf .WriteString (" REPLICATION " )
610610 _ , _ = buf .WriteString (strconv .Itoa (* s .RetentionPolicyReplication ))
611611 }
612612 if s .RetentionPolicyShardGroupDuration > 0 {
613613 _ , _ = buf .WriteString (" SHARD DURATION " )
614- _ , _ = buf .WriteString (s .RetentionPolicyShardGroupDuration . String ( ))
614+ _ , _ = buf .WriteString (FormatDuration ( s .RetentionPolicyShardGroupDuration ))
615615 }
616616 if s .RetentionPolicyName != "" {
617617 _ , _ = buf .WriteString (" NAME " )
@@ -1405,8 +1405,8 @@ func (s *SelectStatement) RewriteFields(m FieldMapper) (*SelectStatement, error)
14051405//
14061406// Conditions that can currently be simplified are:
14071407//
1408- // - host =~ /^foo$/ becomes host = 'foo'
1409- // - host !~ /^foo$/ becomes host != 'foo'
1408+ // - host =~ /^foo$/ becomes host = 'foo'
1409+ // - host !~ /^foo$/ becomes host != 'foo'
14101410//
14111411// Note: if the regex contains groups, character classes, repetition or
14121412// similar, it's likely it won't be rewritten. In order to support rewriting
0 commit comments