Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

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:
  #1  
Old February 22nd, 2006, 03:20 PM
katesclau katesclau is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 3 katesclau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 2 sec
Reputation Power: 0
TFieldType issues

I have a DB in MySQL. It has a unsigned 32-bits integer field. the problem is that TFieldType doesnīt have a unsigned 32-bits integer type so I can handle it through:

Tquery.ParamsByName('fieldname').datatype := ???(fttype);
Tquery.ParamsByName('fieldname').value := ...(the value i want);

Anyone knows a alternative? Besides Calling it through SQL quote, wich didnīt work aswell.

Thanks everybody

Reply With Quote
  #2  
Old February 22nd, 2006, 03:40 PM
michaelm michaelm is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 52 michaelm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 49 m 33 sec
Reputation Power: 3
Quote:
Originally Posted by katesclau
I have a DB in MySQL. It has a unsigned 32-bits integer field. the problem is that TFieldType doesnīt have a unsigned 32-bits integer type so I can handle it through:

Tquery.ParamsByName('fieldname').datatype := ???(fttype);
Tquery.ParamsByName('fieldname').value := ...(the value i want);

Anyone knows a alternative? Besides Calling it through SQL quote, wich didnīt work aswell.

Thanks everybody


sure it does. try the ftWord type identifier.



-Michael

Reply With Quote
  #3  
Old February 22nd, 2006, 03:52 PM
katesclau katesclau is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 3 katesclau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 2 sec
Reputation Power: 0
No it does not, because ftword is a unsigned 16-bits integer

Reply With Quote
  #4  
Old February 22nd, 2006, 05:13 PM
michaelm michaelm is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2006
Posts: 52 michaelm User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 49 m 33 sec
Reputation Power: 3
Quote:
Originally Posted by katesclau
No it does not, because ftword is a unsigned 16-bits integer


ftAutoinc is 32bit unsigned. you could also store it in a ftLargeInt (although 64bit signed, it will work).

Reply With Quote
  #5  
Old February 23rd, 2006, 12:28 PM
katesclau katesclau is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2006
Posts: 3 katesclau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 26 m 2 sec
Reputation Power: 0
Sorry, I got no result either, with ftLargeInt shows error "field of unsupported type"

Iīve installed the DBX4Mysql, wich is a driver for DBExpress that expands th ftinteger possibilities, making it acceptable to handle unsigned 32-bits integer.

Iīm still configuring it but when I have a decent result Iīll tell you guys!!!

Thanks anyway

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > TFieldType issues


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 2 hosted by Hostway
Stay green...Green IT