Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

@, [ , ] in SQL (VB)

  • 20-08-2003 01:11PM
    #1
    Registered Users, Registered Users 2, Paid Member Posts: 8,088 ✭✭✭


    Creating a database in Oracle using VB.

    However when i try to enter a field using the above options (ie @ [ ]) i get an SQL statement error. This is very annoying for obvious reasons.
    Is there any way around this? patches or the likes?

    Thanks.


Comments

  • Closed Accounts Posts: 5,563 ✭✭✭Typedef




  • Registered Users, Registered Users 2, Paid Member Posts: 8,088 ✭✭✭BKtje


    sorry i think you mis understand (or i do) but when entering a form into the database.
    ie a mail address such as me@lookatme.com.
    When i hit enter/save changes it gives me a SQL error and says database not updated. I can't expect clients to type me\@lookatme.com. or did you mean something else? :)


  • Registered Users, Registered Users 2 Posts: 6,240 ✭✭✭hussey


    I can't expect clients to type me\@lookatme.com. or did you mean something else?

    your right .. but we expect you to change the way it gets delivered

    instead of
    WHEN 'enter pressed' CALL FUNCTION:update database

    have

    WHEN 'enter pressed' CALL FUNCTION:checkfield THEN CALL FUNCTION:update database

    where checkfield would change the value of
    and check for other characters etc


  • Registered Users, Registered Users 2 Posts: 7,468 ✭✭✭Evil Phil


    Aye, parse your String for special characters and add an escape sequence. Watch out for single and double quotes as well.


  • Registered Users, Registered Users 2, Paid Member Posts: 8,088 ✭✭✭BKtje


    ahhhh ok, think i gotcha :D

    Thanks for the help!


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 640 ✭✭✭Kernel32


    You could use stored procedures as well and avoid those problems.


Advertisement