PostgreSQL: 42883 Operator does not exist: timestamp without time zone = text
问题 I am using Npgsql 3.0.3.0 and PetaPoco latest version. When I run this command: var dateCreated = DateTime.Now; // just an example var sql = new Sql("WHERE date_created = @0", dateCreated.ToString("yyyy-MM-dd HH:00:00")); var category = db.SingleOrDefault<Category>(sql); I get the following error: Npgsql.NpgsqlException 42883: operator does not exist: timestamp without time zone = text I understand the error message is saying I'm trying to compare a timestamp (date) with a text, however for