iphone sqlite3_column_text issue

Posted by Ruchir Shah on Stack Overflow See other posts from Stack Overflow or by Ruchir Shah
Published on 2010-03-12T11:13:25Z Indexed on 2010/03/12 11:17 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

I have a column in sqlite3 table. Column has values like

1 ½”

1 ¾”

2 ½” etc. Column has VARCHAR datatype.

I am using this code.

pref_HoseDiameter = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 2)]; 

Now, when I am fetching these values from database, I am getting pref_HoseDiameter string values like this:

1 1/2"

1 3/4"

2 1/2"

How to fetch those values as they are in database or how to convert them that look like database values.

Help would be appreciated. Thanks in advance.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about sqlite3