BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Timestamp and JRE1.4

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Deployment
View previous topic :: View next topic  
Author Message
Sue
Guest





PostPosted: Wed Feb 04, 2004 1:32 pm    Post subject: Timestamp and JRE1.4 Reply with quote




Hi,
I have an applet built using JBuilder6 (and thus SDK 1.3) which
reads datetime fields from a SQL database into a column of type
Timestamp.
This column is attached to a JdbTextField in the applet.
When running with JRE 1.3.2, this field displays correctly.
However, some people have JRE 1.4 and above and when they run
the applet, the field is blank.
Does anyone know why this is and how to solve it ?

Sue
Back to top
Lori M Olson (TeamB)
Guest





PostPosted: Thu Feb 05, 2004 4:59 pm    Post subject: Re: Timestamp and JRE1.4 Reply with quote



Sue wrote:

Quote:
Hi,
I have an applet built using JBuilder6 (and thus SDK 1.3) which
reads datetime fields from a SQL database into a column of type
Timestamp.
This column is attached to a JdbTextField in the applet.
When running with JRE 1.3.2, this field displays correctly.
However, some people have JRE 1.4 and above and when they run
the applet, the field is blank.
Does anyone know why this is and how to solve it ?

Sue

What SQL database are we talking about here?

--

Regards,

Lori Olson (TeamB)

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html


Back to top
Sue
Guest





PostPosted: Fri Feb 06, 2004 10:46 am    Post subject: Re: Timestamp and JRE1.4 Reply with quote




"Lori M Olson (TeamB)" <javadragon (AT) techie (DOT) com> wrote:
Quote:
Sue wrote:

What SQL database are we talking about here?

--

Regards,

Lori Olson (TeamB)


Hi,

I'm using MS SQL Server 2000 and i-net Opta2000 JDBC driver

Sue

Back to top
Lori M Olson (TeamB)
Guest





PostPosted: Mon Feb 09, 2004 8:39 pm    Post subject: Re: Timestamp and JRE1.4 Reply with quote

Sue wrote:
Quote:

Hi,

I'm using MS SQL Server 2000 and i-net Opta2000 JDBC driver

Sue

Hmmm. I use Oracle and JDataStore and MySQL, but not SQL Server. I
know that there's all kinds of fun involved in Oracle DATETIME and DATE
and TIMESTAMP columns. I'm not sure if SQL Server has similar issues or
not.

Anyone?

--

Regards,

Lori Olson (TeamB)

------------

Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.

Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html


Back to top
Sue
Guest





PostPosted: Tue Feb 10, 2004 1:52 pm    Post subject: Re: Timestamp and JRE1.4 Reply with quote

"Sue" <no.spam (AT) please (DOT) com> wrote:
Quote:

Hi,
I have an applet built using JBuilder6 (and thus SDK 1.3) which
reads datetime fields from a SQL database into a column of type
Timestamp.
This column is attached to a JdbTextField in the applet.
When running with JRE 1.3.2, this field displays correctly.
However, some people have JRE 1.4 and above and when they run
the applet, the field is blank.
Does anyone know why this is and how to solve it ?

Sue

Hi,
I have done a search on google newsgroups with keywords "1.4 timestamp" and get some results which show there may be a
difference between timestamp in Java 1.3 and 1.4. However,
the solutions vary from changing driver to ignoring nanoseconds.

Could someone clarify the situation, and perhaps let me know
what they think would solve the problem. I'm confused.
I'm using MS SQL Server 2000 and i-net Opta2000 JDBC driver.

Thanks for your help
Sue


Back to top
Sue
Guest





PostPosted: Wed Feb 11, 2004 9:54 am    Post subject: Re: Timestamp and JRE1.4 Reply with quote


"Sue" <no.spam (AT) please (DOT) com> wrote:
Quote:

"Sue" <no.spam (AT) please (DOT) com> wrote:

Hi,
I have an applet built using JBuilder6 (and thus SDK 1.3) which
reads datetime fields from a SQL database into a column of type
Timestamp.
This column is attached to a JdbTextField in the applet.
When running with JRE 1.3.2, this field displays correctly.
However, some people have JRE 1.4 and above and when they run
the applet, the field is blank.
Does anyone know why this is and how to solve it ?

Sue


Hi,
After some further investigation I found that under 1.3,
the timestamp columns formatter had the following parameters:-
formatter = com.borland.dx.text.VariantFormatStr@276eff
Locale = en_GB Pattern = dd/MM/yy HH:mm:ss Scale = -1 Type = 15

And under 1.4 it was :-
formatter = com.borland.dx.text.VariantFormatStr@129c445
Locale = en_GB Pattern = Scale = -1 Type = 15

i.e. under 1.4 there is no pattern, which is why it's not
displaying. If I set the displayMask on the column to be
dd/MM/yy HH:mm:ss, then it's ok.

Presumably there's been a change in 1.4 which doesn't set
a default pattern.

Is there a way of setting this globally, or will I have to change all my timestamp columns ?

Sue

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder Deployment All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.