Skip to content

Commit

Permalink
fixes truncate for aigenerate (nucleuscloud#1908)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzelei authored and zackerydev committed May 6, 2024
1 parent 67bdba7 commit 0339474
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (b *initStatementBuilder) RunSqlInitTableStatements(
continue
}

if job.Source.Options.GetPostgres() != nil || job.Source.Options.GetGenerate() != nil {
if job.Source.Options.GetPostgres() != nil || job.Source.Options.GetGenerate() != nil || job.Source.Options.GetAiGenerate() != nil {
sourcePool := b.pgpool[sourceConnectionId]
pgconn, err := b.sqlconnector.NewPgPoolFromConnectionConfig(connection.PgConfig, shared.Ptr(uint32(5)), slogger)
if err != nil {
Expand Down Expand Up @@ -346,7 +346,7 @@ func (b *initStatementBuilder) RunSqlInitTableStatements(
continue
}

if job.Source.Options.GetMysql() != nil || job.Source.Options.GetGenerate() != nil {
if job.Source.Options.GetMysql() != nil || job.Source.Options.GetGenerate() != nil || job.Source.Options.GetAiGenerate() != nil {
sourcePool := b.mysqlpool[sourceConnectionId]
destconn, err := b.sqlconnector.NewDbFromConnectionConfig(destinationConnection.ConnectionConfig, shared.Ptr(uint32(5)), slogger)
if err != nil {
Expand Down

0 comments on commit 0339474

Please sign in to comment.