Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7798 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

hi

i try to do an insert or update in FMP database by JDBC with a text contains an apostrophe

[color:"red"]

  INSERT INTO table ("fieldtext") VALUES ('d'abord') 

the insert failed mad.gif

How can i put my apostrophe in SQL

i try URLEncode but in filemaker i don't see the caractere ' in my string

somebody have a solution ? smile.gif

  • Newbies
Posted

i know it is an example what i try to do

i try lot of things to replace ' in the string

u0027 or %27 or "'" or ' and many

help me

Posted

insert value "d'abord"

should work - you will have to search for that character in some middleware though using something like this:

protected static boolean hasEscapeQuotes (String input){

boolean ret = false;

String escape = "';,."/";

for (int i =0 ; i < escape.length(); i++){

char test = escape.charAt(i);

if (input.indexOf(test) != -1) ret = true;

}

return ret;

}

alternatively you can try and use the

escape drive properties

see page 25 of

http://www.filemaker.com.au/downloads/pdf/FMPU55_UltraDev.pdf

i find that these properties are poorly implemented ( if at all ) and it is better to write your own class

  • 1 month later...

This topic is 7798 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.