Skip to content

Bug: unsupported time.Time #187

Open
@EtienneBruines

Description

Describe the bug

Sending a time.Time as part of a query is not supported. Will currently result in the behavior described in #186

Steps to reproduce

	_, err = surrealdb.Create[struct{}](surrealConn, "table1", map[string]interface{}{
		"created": time.Now(),
	})

Expected behaviour

No errors but a correct marshaling of the standard library time.Time

SurrealDB version

surreal 2.0.4 for linux on x86_64 with surrealdb.go on v0.3.0

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions