Skip to content

Commit

Permalink
Fixed the issue of losing Chinese characters when converting ORM fiel…
Browse files Browse the repository at this point in the history
…ds when database field names contain Chinese characters

For example:
truck13整车 ->Truck13		//Error
truck13整车 ->Truck13整车	    //Correct
  • Loading branch information
yjs committed Apr 18, 2024
1 parent 7a5fb50 commit 2dd626c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sea-orm-codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ path = "src/lib.rs"
sea-query = { version = "0.31.0-rc.3", default-features = false, features = ["thread-safe"] }
syn = { version = "2", default-features = false, features = ["parsing", "proc-macro", "derive", "printing"] }
quote = { version = "1", default-features = false }
heck = { version = "0.4", features = ["unicode"] }
heck = { version = "0.5.0"}
proc-macro2 = { version = "1", default-features = false }
tracing = { version = "0.1", default-features = false, features = ["log"] }

Expand Down
2 changes: 1 addition & 1 deletion sea-orm-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ proc-macro = true
bae = { version = "0.2", package = "sea-bae", default-features = false, optional = true }
syn = { version = "2", default-features = false, features = ["parsing", "proc-macro", "derive", "printing"] }
quote = { version = "1", default-features = false }
heck = { version = "0.4", features = ["unicode"] }
heck = { version = "0.5.0"}
proc-macro2 = { version = "1", default-features = false }
unicode-ident = { version = "1" }

Expand Down

0 comments on commit 2dd626c

Please sign in to comment.