Exception message:
This exception was originally thrown at this call stack:
Npgsql.Internal.NpgsqlConnector.ReadMessageLong(bool, Npgsql.Internal.DataRowLoadingMode, bool, bool)
System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder<TResult>.StateMachineBox<TStateMachine>.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(short) in PoolingAsyncValueTaskMethodBuilder.cs
Npgsql.NpgsqlDataReader.NextResult(bool, bool, System.Threading.CancellationToken)
Npgsql.NpgsqlDataReader.NextResult(bool, bool, System.Threading.CancellationToken)
Npgsql.NpgsqlDataReader.NextResult()
Npgsql.NpgsqlCommand.ExecuteReader(bool, System.Data.CommandBehavior, System.Threading.CancellationToken)
Npgsql.NpgsqlCommand.ExecuteReader(bool, System.Data.CommandBehavior, System.Threading.CancellationToken)
System.Threading.Tasks.ValueTask<TResult>.Result.get() in ValueTask.cs
Npgsql.NpgsqlCommand.ExecuteNonQuery(bool, System.Threading.CancellationToken)
Npgsql.NpgsqlCommand.ExecuteNonQuery()
Description
CreateTable gives error with Postgre connection string
Exception
Npgsql.PostgresException: '42601: syntax error at or near "If"
Further technical details