Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Implement the timestamp datatype for MySQL/MariaDB #18234

Closed
2 tasks
jonas-dongowski opened this issue May 22, 2023 · 0 comments · Fixed by #18704
Closed
2 tasks

Implement the timestamp datatype for MySQL/MariaDB #18234

jonas-dongowski opened this issue May 22, 2023 · 0 comments · Fixed by #18704
Assignees
Labels
Feature Request This issue is made to request a feature.

Comments

@jonas-dongowski
Copy link

Describe the feature

Currently when trying to retrieve data from a table that contains a TIMESTAMP field, the following error is shown:
V panic: 'timestamp' is not yet implemented. Please create a new issue at https://github.com/vlang/v/issues/new

Use Case

There is software out there that is using the timestamp data type. To successfully integrate with their databases using V, this implementation is necessary.

Proposed Solution

Implement the timestamp datatype. Ideally with the ability to deal with such a value as a time.Time variable.

Other Information

I've tested using a MariaDB instance. It's possible that this fact lead to the issue as I've not tested using a MySQL instance.

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

jonas-dongowski@1359e9d

Environment details (OS name and version, etc.)

Docker version 20.10.13, build a224086

V full version: V 0.3.4 1be798b.3a09142
OS: linux, Linux version 5.10.16.3-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Apr 2 22:23:49 UTC 2021 (WSL 2)
Processor: 16 cpus, 64bit, little endian, AMD Ryzen 7 2700X Eight-Core Processor

getwd: /app
vexe: /opt/vlang/v
vexe mtime: 2023-05-22 07:28:00

vroot: OK, value: /opt/vlang
VMODULES: OK, value: /root/.vmodules
VTMP: OK, value: /tmp/v_0

Git version: git version 2.20.1
Git vroot status: weekly.2023.19-48-g3a09142a
.git/config present: true

CC version: cc (Debian 8.3.0-6) 8.3.0
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3

@jonas-dongowski jonas-dongowski added the Feature Request This issue is made to request a feature. label May 22, 2023
@walkingdevel walkingdevel self-assigned this May 25, 2023
@vlang vlang locked and limited conversation to collaborators Jun 27, 2023
@medvednikov medvednikov converted this issue into discussion #18682 Jun 27, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Feature Request This issue is made to request a feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants