@@ -279,7 +279,8 @@ func (a *AlterTableClearColumn) FormatSQL(formatter *Formatter) {
279279 }
280280 formatter .WriteExpr (a .ColumnName )
281281 if a .PartitionExpr != nil {
282- formatter .WriteString (" IN " )
282+ formatter .Break ()
283+ formatter .WriteString ("IN " )
283284 formatter .WriteExpr (a .PartitionExpr )
284285 }
285286
@@ -292,7 +293,8 @@ func (a *AlterTableClearIndex) FormatSQL(formatter *Formatter) {
292293 }
293294 formatter .WriteExpr (a .IndexName )
294295 if a .PartitionExpr != nil {
295- formatter .WriteString (" IN " )
296+ formatter .Break ()
297+ formatter .WriteString ("IN " )
296298 formatter .WriteExpr (a .PartitionExpr )
297299 }
298300
@@ -305,7 +307,8 @@ func (a *AlterTableClearProjection) FormatSQL(formatter *Formatter) {
305307 }
306308 formatter .WriteExpr (a .ProjectionName )
307309 if a .PartitionExpr != nil {
308- formatter .WriteString (" IN " )
310+ formatter .Break ()
311+ formatter .WriteString ("IN " )
309312 formatter .WriteExpr (a .PartitionExpr )
310313 }
311314
@@ -380,7 +383,8 @@ func (a *AlterTableMaterializeIndex) FormatSQL(formatter *Formatter) {
380383 formatter .WriteByte (whitespace )
381384 formatter .WriteExpr (a .IndexName )
382385 if a .Partition != nil {
383- formatter .WriteString (" IN " )
386+ formatter .Break ()
387+ formatter .WriteString ("IN " )
384388 formatter .WriteExpr (a .Partition )
385389 }
386390}
@@ -394,7 +398,8 @@ func (a *AlterTableMaterializeProjection) FormatSQL(formatter *Formatter) {
394398 formatter .WriteByte (whitespace )
395399 formatter .WriteExpr (a .ProjectionName )
396400 if a .Partition != nil {
397- formatter .WriteString (" IN " )
401+ formatter .Break ()
402+ formatter .WriteString ("IN " )
398403 formatter .WriteExpr (a .Partition )
399404 }
400405}
@@ -534,11 +539,13 @@ func (a *AuthenticationClause) FormatSQL(formatter *Formatter) {
534539 formatter .WriteExpr (a .AuthValue )
535540 }
536541 if a .LdapServer != nil {
537- formatter .WriteString (" WITH ldap SERVER " )
542+ formatter .Break ()
543+ formatter .WriteString ("WITH ldap SERVER " )
538544 formatter .WriteExpr (a .LdapServer )
539545 }
540546 if a .IsKerberos {
541- formatter .WriteString (" WITH kerberos" )
547+ formatter .Break ()
548+ formatter .WriteString ("WITH kerberos" )
542549 if a .KerberosRealm != nil && a .KerberosRealm .Literal != "" {
543550 formatter .WriteString (" REALM " )
544551 formatter .WriteExpr (a .KerberosRealm )
0 commit comments