Jump to content
msd

FirebirdSQL NaN value for numeric field

Recommended Posts

Hello,

 

FirebirdSQL has a replacement in Delphi for the null value, and it is called NaN (non-numeric value).

I can't prevent this situation, ID DB, so I need to check if my variable (Real type) and my DataSet field (TFloat type) are numeric or not (nil, null, nan, etc.).

 

Thanks in advance...

Share this post


Link to post
14 minutes ago, msd said:

Hello,

 

FirebirdSQL has a replacement in Delphi for the null value, and it is called NaN (non-numeric value).

I can't prevent this situation, ID DB, so I need to check if my variable (Real type) and my DataSet field (TFloat type) are numeric or not (nil, null, nan, etc.).

 

Thanks in advance...

TField.IsNull is the way to check if a database field is NULL. Do not rely on this conditions beeing mapped to a specific value.

  • Thanks 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×