/** * Frees all resources associated with statement or cursor */ public static boolean oci_free_statement(Env env, @NotNull OracleStatement stmt) { return stmt.close(); }
/** * Alias of OCI-Lob->close */ public static Value ocicloselob(Env env, @NotNull Oracle conn) { throw new UnimplementedException("ocicloselob"); }
/** * Alias of OCI-Collection->append */ public static Value ocicollappend(Env env, @NotNull Oracle conn) { throw new UnimplementedException("ocicollappend"); }
/** * Alias of OCI-Collection->assignElem */ public static Value ocicollassignelem(Env env, @NotNull Oracle conn) { throw new UnimplementedException("ocicollassignelem"); }
/** * Alias of OCI-Lob->export */ public static Value ociwritelobtofile(Env env, @NotNull Oracle conn) { throw new UnimplementedException("ociwritelobtofile"); }
/** * Returns a row from the connection */ public static Value mysql_fetch_assoc(Env env, @NotNull MysqliResult result) { if (result == null) { return BooleanValue.FALSE; } return result.fetch_array(env, MYSQL_ASSOC); }
/** * Returns the table corresponding to the field. */ public static Value mysql_field_table(Env env, @NotNull MysqliResult result, int fieldOffset) { if (result == null) return BooleanValue.FALSE; return result.getFieldTable(env, fieldOffset); }
/** * Deprecated alias for mysql_field_table. */ public static Value mysql_fieldtable(Env env, @NotNull MysqliResult result, int fieldOffset) { return mysql_field_table(env, result, fieldOffset); }
/** * Frees a mysql result. */ public static boolean mysql_free_result(@NotNull MysqliResult result) { if (result == null) return false; result.close(); return true; }
/** * Deprecated alias for mysql_num_fields */ public static Value mysql_numfields(Env env, @NotNull MysqliResult result) { return mysql_num_fields(env, result); }
/** * Retrieves the table name corresponding to a field, using * a result return by {@link #mysql_list_tables}. */ public static Value mysql_tablename(Env env, @NotNull MysqliResult result, int i) { if (result == null) return BooleanValue.FALSE; return result.getResultField(env, i, LongValue.ZERO); }
public static void date_timestamp_set(Env env, @NotNull DateTime dateTime, long time) { if (dateTime == null) { return; } dateTime.setTimestamp(time); }
public static DateTimeZone date_timezone_get(Env env, @NotNull DateTime dateTime) { if (dateTime == null) { return null; } return dateTime.getTimeZone(); }
/** * pg_field_name() alias. */ public static Value pg_fieldname(Env env, @NotNull PostgresResult result, int fieldNumber) { return pg_field_name(env, result, fieldNumber); }
/** * pg_field_num() alias. */ public static int pg_fieldnum(Env env, @NotNull PostgresResult result, String fieldName) { return pg_field_num(env, result, fieldName); }
/** * pg_lo_unlink() alias. */ public static boolean pg_lounlink(Env env, @NotNull Postgres conn, int oid) { return pg_lo_unlink(env, conn, oid); }
/** * @param env * @param curl */ public static Value curl_exec(Env env, @NotNull CurlResource curl) { if (curl == null) { return BooleanValue.FALSE; } return curl.execute(env, true); }
/** * Turns auto-commit on or off. */ public static boolean mysqli_autocommit(Env env, @NotNull Mysqli conn, boolean mode) { if (conn == null) { return false; } return conn.autocommit(env, mode); }
/** * Returns the error code for the prepared statement. */ public static int mysqli_stmt_errno(Env env, @NotNull MysqliStatement stmt) { if (stmt == null) return 0; return stmt.errno(); }