On Wed, Apr 09, 2008 at 12:09:00AM +0200, dark0s dark0s scratched on the wall:
> No, it don't work, the output is:
> 
> bash-3.1# gcc -lsqlite3 labsinf.c -o inf
> labsinf.c: In function 'soundex':
> labsinf.c:18: error: assignment of read-only location
> labsinf.c:22: error: assignment of read-only location
> labsinf.c:27: error: assignment of read-only location
> labsinf.c:31: error: assignment of read-only location
> labsinf.c:32: error: assignment of read-only location
> labsinf.c:33: error: assignment of read-only location
> labsinf.c:34: error: assignment of read-only location
> labsinf.c:35: error: assignment of read-only location

  You're not allowed to modify the buffer referenced by
  sqlite3_value_text().... that's why it returns a const pointer.

  If you want to modify the returned string, you need to make your own
  private copy first.

    -j

-- 
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"'People who live in bamboo houses should not throw pandas.' Jesus said that."
   - "The Ninja", www.AskANinja.com, "Special Delivery 10: Pop!Tech 2006"
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to