Permalink
Browse files

Remove the `Citext` type alias

Since `Citext` is just text internally, I had hoped that this would be
all we needed. Unfortunately, doing `citext_column.eq("foo")` would do a
case sensitive comparison, as `"foo"` would not be coerced to `citext`.
  • Loading branch information...
sgrif authored and killercup committed Sep 27, 2017
1 parent 777e7d9 commit 0be0b5e73a34293878af8835b8810eb31f021d9f
@@ -67,6 +67,10 @@ for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/
unlikely that your application is using these types, but `InsertStatement` is
now the only "insert statement" type.
* `Citext` as a type alias for `Text` has been removed. Writing
`citext_column.eq("foo")` would perform a case-sensitive comparison. More
fleshed out support will be required.
### Fixed
* When using MySQL and SQLite, dates which cannot be represented by `chrono`
@@ -128,9 +128,6 @@ pub mod sql_types {
#[doc(hidden)]
pub type Bpchar = ::types::VarChar;
#[doc(hidden)]
pub type Citext = ::types::Text;
#[cfg(feature = "serde_json")]
/// The JSON SQL type. This type can only be used with `feature =
/// "serde_json"`
@@ -34,8 +34,6 @@ mod joins;
mod macros;
mod order;
mod perf_details;
#[cfg(feature = "postgres")]
mod postgres_types;
mod schema;
mod schema_dsl;
mod schema_inference;

This file was deleted.

Oops, something went wrong.
@@ -0,0 +1,2 @@
CREATE EXTENSION IF NOT EXISTS citext;
CREATE TABLE citext_table (citext_field CITEXT PRIMARY KEY);
@@ -0,0 +1 @@
DROP TABLE citext_table;

0 comments on commit 0be0b5e

Please sign in to comment.