1 22 23 package org.xquark.extractor.microsoft.sql; 24 25 26 import org.xquark.extractor.sql.Context; 27 import org.xquark.extractor.sql.SqlExpression; 28 29 public class SfStringLength extends org.xquark.extractor.sql.SfStringLength 30 { 31 32 private static final String RCSRevision = "$Revision: 1.4 $"; 33 private static final String RCSName = "$Name: $"; 34 35 36 public SfStringLength() { 37 super(); 38 } 39 40 public SfStringLength(SqlExpression arg0) { 41 super(arg0); 42 } 43 44 public String toSql (Context context) 45 { 46 48 StringBuffer retVal = new StringBuffer (); 49 retVal.append("LEN("); 50 retVal.append(getArgument(0).toSql(context)); 51 retVal.append(")"); 52 53 return retVal.toString(); 55 } 56 } 57 | Popular Tags |