Skip to content

firebird have time and date datatype why SqlType only have timestamp??? #163

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

Closed
yuyang-ok opened this issue Mar 18, 2025 · 7 comments · Fixed by #164
Closed

firebird have time and date datatype why SqlType only have timestamp??? #163

yuyang-ok opened this issue Mar 18, 2025 · 7 comments · Fixed by #164
Assignees

Comments

@yuyang-ok
Copy link
Contributor

yuyang-ok commented Mar 18, 2025

somehow I notice that firebird have time datatype.
why SqlType only have so few datatypes ???
is date convert to timestamp
designed this way???

@yuyang-ok yuyang-ok changed the title firebird have time and date datetype why SqlType only have timestamp??? firebird have time and date datatype why SqlType only have timestamp??? Mar 18, 2025
@fernandobatels fernandobatels self-assigned this Mar 18, 2025
@fernandobatels
Copy link
Owner

The timestamp is an abstract date/time/timestamp representation.

You can use the chrono crate do manipulate these fields:

fn dates() -> Result<(), FbError> {

@yuyang-ok
Copy link
Contributor Author

what if I don't know the type?? My program need handle any select statement.How I can do this?

@yuyang-ok
Copy link
Contributor Author

yuyang-ok commented Mar 18, 2025

is that possible to add field to Column.

#[derive(Debug, Clone)]
pub struct Column {
    pub value: SqlType,
    pub name: String,
    pub sqltype: u32
}

@yuyang-ok
Copy link
Contributor Author

yuyang-ok commented Mar 19, 2025

pub sqltype: u32

If this is OK , I can open a PR.

@fernandobatels
Copy link
Owner

Maybe pub raw_type: u32.

If this is OK , I can open a PR.

t's OK for me.

@yuyang-ok
Copy link
Contributor Author

@fernandobatels how about review the PR??

@fernandobatels
Copy link
Owner

New version v0.25.2 released

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants