ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old August 25th, 2004, 12:43 PM
globeuser globeuser is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 10 globeuser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Query in CF5 versus MX

hi again,

I wrote a simple query that works in MX but not in CF5.

basically, it loops through the form and deletes records checked in the checkbox field.

Database is Oracle 8i

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

Error message for CF 5:

Error Diagnostic Information
Oracle Error Code = 911

ORA-00911: invalid character

SQL = "UPDATE TLC_COURSE
SET TLC_COURSEISACTIVE = '0', TLC_COURSEDATEMODIFIED = {ts '2004-08-25 10:32:46'},
TLC_COURSEIP = '127.0.0.1' WHERE WEB_TLC_COURSE.TLC_COURSEID IN (141)"

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

Works okay with CFMX... I tried to look up in livedocs for the differences between them but can't find anything.

It can't be an Oracle error because it's using the same database!

only diff is that test platform is CFMX and live one is version 5.

thoughts?

Reply With Quote
  #2  
Old August 25th, 2004, 12:50 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,626 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 6 m 34 sec
Reputation Power: 53
It's probably something related to the JDBC driver that CFMX is using, vs the native driver that CF 5 is using. I bet it's the time stamp. Does removing the time stamp from the update fix the problem?
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old August 25th, 2004, 01:05 PM
globeuser globeuser is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 10 globeuser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up good eye..

hi,

interesting.. you were correct. How did you figure that it was specifically the timeformat that caused the trouble?

to update the time , I basically just used #now()#... maybe I use something like createodbcdate but then again, its oracle running on a Nix box

Reply With Quote
  #4  
Old August 25th, 2004, 01:48 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,626 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 10 h 6 m 34 sec
Reputation Power: 53
You should be able to use createODBCDate( now() ) with no problem. Or better yet, make the default value in that column in Oracle be the current date/time and you don't even have to worry about it from the CF side.

Reply With Quote
  #5  
Old August 25th, 2004, 02:21 PM
globeuser globeuser is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 10 globeuser User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
yeah.. I set the default for the other date/time fields but not this one.. I'll do the same now.

thanks again.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Query in CF5 versus MX


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway