You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code uses the nebula-go library, and its function is to store an object of type map[string]interface{} into the nebulagraph database through the ExecuteWithParameter function.
Now a bug is encountered during the execution of this code: ErrorCode: -1005, ErrorMsg: Storage Error: The data type does not meet the requirements. Use the correct type of data.
funcAddVertex(ptrPool*nebula.ConnectionPool) error {
// Create sessionsession, err:=ptrPool.GetSession(username, password)
iferr!=nil {
log.Fatal(fmt.Sprintf("Fail to create a new session from connection pool, "+"username: %s, password: %s, %s", username, password, err.Error()))
returnerr
}
// Release session and return connection back to connection pooldefersession.Release()
personMap:=make(map[string]interface{})
personMap["Height"] =1.78personMap["Name"] ="asd"insertNGQL:=` CREATE SPACE IF NOT EXISTS Myspace(vid_type=FIXED_STRING(20)); USE Myspace; CREATE TAG IF NOT EXISTS Person (Height double null, Name string null); INSERT VERTEX Person (Height, Name) VALUES "aaaaaaaaaaaaaaaaaaaa":($Height, $Name); `_, _=session.Execute("USE Myspace;")
// SendresultSet, err:=session.ExecuteWithParameter(insertNGQL, personMap)
iferr!=nil {
fmt.Print(err.Error())
returnerr
}
checkResultSet("test", resultSet)
returnnil
}
Is my usage wrong and how to resolve it?
The text was updated successfully, but these errors were encountered:
nebula version:
3.1.0
Installation method:
docker-compose
nebula-go version:
v3.4.0
The following code uses the nebula-go library, and its function is to store an object of type map[string]interface{} into the nebulagraph database through the ExecuteWithParameter function.
Now a bug is encountered during the execution of this code:
ErrorCode: -1005, ErrorMsg: Storage Error: The data type does not meet the requirements. Use the correct type of data.
Is my usage wrong and how to resolve it?
The text was updated successfully, but these errors were encountered: