-
-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not insert emoji? #260
Comments
sorry for late replay 1- casting string to go_ora.NVarChar value := "😁🍎$➔®≧①◎◉§❤️🇨🇳"
_, err = conn.Exec(fmt.Sprintf(`INSERT INTO %s(ID, CONTENT) VALUES(1, :1)`, tableName), go_ora.NVarChar(value))
if err != nil {
fmt.Println("Can't insert: ", err)
return
} 2- use go_ora.NClob value := "😁🍎$➔®≧①◎◉§❤️🇨🇳"
_, err = conn.Exec(fmt.Sprintf(`INSERT INTO %s(ID, CONTENT) VALUES(1, :1)`, tableName), go_ora.NClob{String: value})
if err != nil {
fmt.Println("Can't insert: ", err)
return
} |
uonun
pushed a commit
to uonun/gorm-oracle
that referenced
this issue
Nov 16, 2022
uonun
pushed a commit
to uonun/gorm-oracle
that referenced
this issue
Nov 16, 2022
Thank you very much, it is ok now. @sijms |
uonun
added a commit
to uonun/gorm-oracle
that referenced
this issue
Nov 21, 2022
uonun
added a commit
to uonun/gorm-oracle
that referenced
this issue
Nov 21, 2022
uonun
added a commit
to uonun/gorm-oracle
that referenced
this issue
Nov 21, 2022
uonun
added a commit
to uonun/gorm-oracle
that referenced
this issue
Nov 21, 2022
uonun
added a commit
to uonun/gorm-oracle
that referenced
this issue
Nov 21, 2022
uonun
added a commit
to uonun/gorm-oracle
that referenced
this issue
Nov 21, 2022
uonun
added a commit
to uonun/gorm-oracle
that referenced
this issue
Nov 21, 2022
uonun
added a commit
to uonun/gorm-oracle
that referenced
this issue
Nov 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what can i do to get the original string with emoji rather than \uxxx?
tested:
go_ora.NClob
, got:ORA-01461: can bind a LONG value only for insert into a LONG column
pls help, thanks.
here is the source code:
DB:
The text was updated successfully, but these errors were encountered: