Update of /cvsroot/jython/jython/com/ziclix/python/sql/handler
In directory usw-pr-cvs1:/tmp/cvs-serv25484/com/ziclix/python/sql/handler
Modified Files:
SQLServerDataHandler.java
Log Message:
extensible stored procedures
Index: SQLServerDataHandler.java
===================================================================
RCS file: /cvsroot/jython/jython/com/ziclix/python/sql/handler/SQLServerDataHandler.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** SQLServerDataHandler.java 29 Dec 2001 07:16:20 -0000 1.1
--- SQLServerDataHandler.java 10 May 2002 16:11:41 -0000 1.2
***************
*** 15,18 ****
--- 15,19 ----
import org.python.core.*;
import com.ziclix.python.sql.*;
+ import com.ziclix.python.sql.procedure.*;
/**
***************
*** 37,40 ****
--- 38,45 ----
}
+ public Procedure getProcedure(PyCursor cursor, PyObject name) throws SQLException {
+ return new SQLServerProcedure(cursor, name);
+ }
+
/**
* Given a ResultSet, column and type, return the appropriate
***************
*** 63,87 ****
return (set.wasNull() || (obj == null)) ? Py.None : obj;
- }
-
- /**
- * Method getProcedureName
- *
- * @param PyObject catalog
- * @param PyObject schema
- * @param PyObject name
- *
- * @return String
- *
- */
- public String getProcedureName(PyObject catalog, PyObject schema, PyObject name) {
-
- StringBuffer procName = new StringBuffer();
-
- if ((schema != Py.EmptyString) && (schema != Py.None)) {
- procName.append(schema.toString()).append(".");
- }
-
- return procName.append(name.toString()).toString();
}
}
--- 68,71 ----
|