RE: UPDATE T SET X = X + 1 increments by 2 when executed inside a function

2007-03-20 Thread Zabach, Elke
Hi, that is the old 'problem'. During select which does not result in a copied (physically stored) resultset, a check is made whether at least one record will fulfill the expected restrictions. During this check, the resultrecord is prepared, the qualification handled AND your funct

Re: UPDATE T SET X = X + 1 increments by 2 when executed inside a function

2007-03-20 Thread Martin Cordova
Hi Alexander, In fact using FOR REUSE in a SELECT that calls the function, makes it work normally. Also using the function in an INSERT statement yields the expected result. Thank you, Martin -- Dinamica - RADical J2EE framework open source, easy and powerful http://www.martincordova.com On 3

RE: UPDATE T SET X = X + 1 increments by 2 when executed inside a function

2007-03-20 Thread Schroeder, Alexander
Hello Martin, can you try to execute the SELECT that triggers the function with a FOR REUSE added? Does it change anything? Alexander Schröder MaxDB & liveCache SAP AG Sitz der Gesellschaft/Registered Office: Walldorf, Germany Vorstand/SAP Executive Board: Henning Kagermann (Sprecher

UPDATE T SET X = X + 1 increments by 2 when executed inside a function

2007-03-20 Thread Martin Cordova
incremented by 2!!! I am missing something, any help will be appreciated. I am using MaxDB 7.6.0.34 on WinXP SP1. The code: CREATE FUNCTION XXX.getNumCorrespE (dependencia_id INTEGER) RETURNS VARCHAR AS VAR ano INTEGER; cnum INTEGER; retval VARCHAR(20); TRY SET ano = 0; SET cnum = 0

New function in php_maxdb

2006-12-15 Thread Cristiano Caruso
write a new function that I add to php extension. Function called *maxdb_clear_error*, which cleans the errno property. *diff php_maxdb.h ../maxdb.src/php_maxdb.h *355d354 < PHP_FUNCTION(maxdb_clear_error); * diff php_maxdb.c ../maxdb.src/php_maxdb.c *343d342 < PHP_FALIAS(clear

RE: Duplicate result table name error, If I use execure function in dbproc

2006-11-03 Thread Zabach, Elke
t test_a (a, b) values (3, 1) > // > drop table test_b > // > create table test_b > ( > a int not null, > b int not null > ) > // > insert test_b (a, b) values (1, 1) > // > insert test_b (a, b) values (2, 1) > // > insert test_b (a, b) values

Duplicate result table name error, If I use execure function in dbproc

2006-11-02 Thread Дмитрий Русанов
) // insert test_b (a, b) values (3, 1) // DROP FUNCTION DBADMIN.getTest // CREATE FUNCTION DBADMIN.getTest ( aINT ) RETURNS INT AS VARidINTEGER; BEGIN TRY SELECT b FROM dbadmin.test_a

RE: User define function not producing the expected result

2006-09-21 Thread Zabach, Elke
ND CODESTR='9' THEN SET CODESTR1= '0' ; > IF PREVSTR2<>NULLCOMP AND CODESTR2 AND CODESTR='Z' THEN SET CODESTR1= 'A' ; > IF CODESTR1 BETWEEN '0' AND '9' THEN SET > NUMCOD = CODESTR1 & NUMCOD ; >

User define function not producing the expected result

2006-09-20 Thread serafin segador
R1 FROM SA.SYSMAPCHAR WHERE DECCODE = (SELECT DECCODE FROM SA.SYSMAPCHAR WHERE ASCVAL=:CODESTR) + 1; IF PREVSTR2<>NULLCOMP AND CODESTR2 NULLCOMP AND CODESTR2 NULLCOMP AND CODESTR2 0 AND NUM(NUMCOD) = 0 THEN SET NEWCODE = ALPHACOD & SUBSTR(NUMCOD,1,LENGTH(NUMCOD)-1) & '1' ;

Simple increment in function executes twice?

2006-07-13 Thread Christian Ullrich
I have this definition (in 7.6.0.27, reduced to the bare minimum): CREATE TABLE dba.testtable (id INTEGER PRIMARY KEY, test INTEGER) // INSERT INTO dba.testtable VALUES (1, 1) // CREATE FUNCTION dba.testfunc RETURNS INTEGER AS VAR i INTEGER; UPDATE dba.testtable SET test = test

RE: SQLStudio: No Function Branch in Object Tree available?

2006-07-10 Thread Auer, Wolfgang
Hello Michael, To get information about your created functions execute "select * from domain.functions". Regards Wolfgang -Original Message- From: Michael Neuber [mailto:[EMAIL PROTECTED] Sent: Montag, 10. Juli 2006 10:36 To: maxdb@lists.mysql.com Subject: SQLStudio: N

SQLStudio: No Function Branch in Object Tree available?

2006-07-10 Thread Michael Neuber
HiHo, can anybody lead me to right piece of information how to display Stored Functions in SQL Studio, and, if this is not possible (why?), how to figure out how MaxDB (Vs 7.5, 7.6) stored a partiocular function created with the CREATE FUNCTION command, or how many functions are stored ? I

Calling DBPROC in FUNCTION

2006-05-17 Thread wDevil wDevil
- CALL BILLING(920,1124,802,0,'pc3.nettle.ru','212.17.4.86','no referer',0,'anonymous',1,1,3,:out) Everthing work; We use PHP-ODBC. ODBC can't get result from "CALL BILLING(920,

RE: Error in input parameters of replace function was cause database crash

2006-04-27 Thread Zabach, Elke
maxdb [mailto:[EMAIL PROTECTED] wrote: > Hi, > > I was mistake and take name filed parameter on arg #3 instead > of arg #1 in > replace database function. As result the next select was > cause database > crash. > > select id, replace('\"','&#

Error in input parameters of replace function was cause database crash

2006-04-09 Thread maxdb
Hi, I was mistake and take name filed parameter on arg #3 instead of arg #1 in replace database function. As result the next select was cause database crash. select id, replace('\"','', name ) from test Table 'test' was have field 'name' - varchar(

AW: AW: [FSID] How to drop a public function?

2005-09-20 Thread Anhaus, Thomas
Andreas Goldstein wrote : >> --- Ursprüngliche Nachricht --- >> Von: "Anhaus, Thomas" <[EMAIL PROTECTED]> >> An: "Andreas Goldstein" <[EMAIL PROTECTED]>, >> >> Betreff: AW: [FSID] How to drop a public function? >> D

Re: AW: [FSID] How to drop a public function?

2005-09-20 Thread Andreas Goldstein
> --- Ursprüngliche Nachricht --- > Von: "Anhaus, Thomas" <[EMAIL PROTECTED]> > An: "Andreas Goldstein" <[EMAIL PROTECTED]>, > > Betreff: AW: [FSID] How to drop a public function? > Datum: Tue, 20 Sep 2005 10:50:16 +0200 > > Andreas Goldst

AW: [FSID] How to drop a public function?

2005-09-20 Thread Anhaus, Thomas
Andreas Goldstein wrote : > >Hi Listmembers, > >I defined a public function on my 7.6.00.12-Windows MaxDB. Now >I would lik >to change the function, but I can not drop the old version :( > > > >Here is what I did in more detail: > >Logged into the DB-instanc

[FSID] How to drop a public function?

2005-09-19 Thread Andreas Goldstein
Hi Listmembers, I defined a public function on my 7.6.00.12-Windows MaxDB. Now I would lik to change the function, but I can not drop the old version :( Here is what I did in more detail: Logged into the DB-instance as DBAdmin CREATE PUBLIC FUNCTION KDSUMME ... Worked well Now I would like

Re: AW: Yet an another random function query

2005-09-07 Thread Robert Klemme
2005/9/7, Xavier CAMIER <[EMAIL PROTECTED]>: > Good morning, > > Curiosity is a bad habit but here are the explanations ;-) > > - The app users can create new records. > - The records are made of a Code, a Description, a Price and a Group. > - The Code is mask free but if the user wants to adopt

Re: AW: Yet an another random function query

2005-09-07 Thread Xavier CAMIER
do it programmatically and I'm still confident with MaxDB :-) Kind regards Xav Zabach, Elke a écrit : Xavier CAMIER wrote: Good morning, I'd need a random function to choose a line sample of a table. In searching into the mailing I found that "Eric Jain" unsucessfuly

AW: Yet an another random function query

2005-09-06 Thread Zabach, Elke
Xavier CAMIER wrote: > > Good morning, > > I'd need a random function to choose a line sample of a table. In > searching into the mailing I found that "Eric Jain" unsucessfuly asked > such a question on August 2002. Is there something new since ? > >

RE: Yet an another random function query

2005-09-06 Thread Knappke, Christian
Xav wrote: > I'd need a random function to choose a line sample of a table. In > searching into the mailing I found that "Eric Jain" > unsucessfuly asked > such a question on August 2002. Is there something new since ? What exactly do you want to accomplish? Is it

Yet an another random function query

2005-09-06 Thread Xavier CAMIER
Good morning, I'd need a random function to choose a line sample of a table. In searching into the mailing I found that "Eric Jain" unsucessfuly asked such a question on August 2002. Is there something new since ? Kind regards Xav -- MaxDB Discussion Mailing List For list

Wrong function result

2005-08-30 Thread service informatique batinor
function doesn't return anything. If I remove the Try...Catch statement (including the loop it contains) the function works as expected Could someone help me to understand what my mistake with this Try...Catch block is ? When I create a stored procedure( REMPLACEFONCTIONPROC ). It works. Than

Function behaviour

2005-08-25 Thread service informatique batinor
Hello, Here is a test function which should help me do understand some MaxDB basics. There is an IN parameter which should be returned at the end of the process. But it doesn't work as expected. According to my tests : - Each Try...Catch... statement is executed as values are inserted

AW: function strange behaviour 7.6.0.12

2005-08-24 Thread Anhaus, Thomas
Vincent Robidet wrote : > >MaxDB 7.6.0.12 >SqlStudio 7.6.0.12 > >Hello, > >I can't explain why the function Remplacefonctions68 returns >'youpi' and >the function remplacefonctions69 returns nothing. >Could someone help me ? > >Thanks in advan

function strange behaviour 7.6.0.12

2005-08-24 Thread service informatique batinor
MaxDB 7.6.0.12 SqlStudio 7.6.0.12 Hello, I can't explain why the function Remplacefonctions68 returns 'youpi' and the function remplacefonctions69 returns nothing. Could someone help me ? Thanks in advance Best regards Vincent Robidet CREATE FUNCTION REMPLACEFONCTIONS69(

Re: AW: no indexof() function ?

2005-07-12 Thread Raimund Jacob
Zabach, Elke wrote: hello! >>i'm looking for an SQL function that returns the position of a character >>or substring in a string (indexof(), strstr() or the like) and was >>rather surprised that there is nothing in the docs (or i just can't find >>it). >

AW: no indexof() function ?

2005-07-12 Thread Zabach, Elke
Raimund Jacob wrote: > > hello list! > > i'm looking for an SQL function that returns the position of a character > or substring in a string (indexof(), strstr() or the like) and was > rather surprised that there is nothing in the docs (or i just can't find > it)

no indexof() function ?

2005-07-12 Thread Raimund Jacob
hello list! i'm looking for an SQL function that returns the position of a character or substring in a string (indexof(), strstr() or the like) and was rather surprised that there is nothing in the docs (or i just can't find it). is there such a function (in 7.5) ? my actual goal is

AW: Can't create function: General error;-4030 POS(1) Unknown schema

2005-07-08 Thread Anhaus, Thomas
Rusanov wrote : > >Hello, I'm use MaxDB Version: '7.6.00.10 Build >010-121-096-895' for LINUX > > >I try create function CREATE FUNCTION LAB.AgeInInterval > > > > Error --- >Auto Commit: On, SQL Mode: Internal, Isola

AW: Error: Invalid function result

2005-07-08 Thread Anhaus, Thomas
Rusanov wrote : > >Test this is example > >CREATE TABLE TEST >( >nINT NOT NULL, >vVARCHAR(1) NOT NULL >) > >INSERT TEST (n, v) VALUES (1, '1') > >CREATE FUNCTION LAB.func_test1 >( n INT >) > >RETURN

Re: Can't create function: General error;-4030 POS(1) Unknown schema

2005-07-08 Thread Дмитрий Русанов
Try test simple example 'LAB' is my schema DROP FUNCTION LAB.test1 // CREATE FUNCTION LAB.test1 RETURNS smallint AS BEGIN return 1; END; // DROP FUNCTION LAB.test2 // CREATE FUNCTION LAB.test2 RETURNS smallint AS VAR a smallint; BEGIN IF LAB.test1() = 1 THEN

Can't create function: General error;-4030 POS(1) Unknown schema

2005-07-08 Thread Дмитрий Русанов
Hello, I'm use MaxDB Version: '7.6.00.10 Build 010-121-096-895' for LINUX I try create function CREATE FUNCTION LAB.AgeInInterval Error --- Auto Commit: On, SQL Mode: Internal, Isolation Level: Committed General error;-4030 POS(1) Unknown sche

Re: Error: Invalid function result

2005-07-07 Thread Дмитрий Русанов
Test this is example CREATE TABLE TEST ( nINT NOT NULL, vVARCHAR(1) NOT NULL ) INSERT TEST (n, v) VALUES (1, '1') CREATE FUNCTION LAB.func_test1 ( n INT ) RETURNS VARCHAR AS VARvVARCHAR(1); BEGIN SELECT v INTO :v

Error: Invalid function result

2005-07-07 Thread Дмитрий Русанов
:sex' ) they should have the same result.. 'proc 2' returns char 'M' (it is succeded result), but 'proc 1' has no result and doesn't throw exception. I call function in select 'select LAB.getPatientSex(2400) from dual' 'proc 1': CRE

Re: General error; Invalid char position in string function

2005-06-29 Thread Alexey Gaidukov
chroeder, Alexander пишет: You should explizitely specify the length, i.e. CREATE DBPROC test(IN p VARCHAR(10)) AS BEGIN INSERT INTO table(field) VALUES (substr(:p,3,1)); END; otherwise 1 is assumed as length, which renders your substr function call invalid. See http://dev.

RE: General error; Invalid char position in string function

2005-06-29 Thread Schroeder, Alexander
You should explizitely specify the length, i.e. CREATE DBPROC test(IN p VARCHAR(10)) AS BEGIN INSERT INTO table(field) VALUES (substr(:p,3,1)); END; otherwise 1 is assumed as length, which renders your substr function call invalid. See http://dev.mysql.com/doc/maxdb/en/03

Fwd: General error; Invalid char position in string function

2005-06-29 Thread Alexey Gaidukov
I'm using MaxDB 7.6.00.10 --- Begin Message --- CREATE DBPROC test(IN p varchar) AS BEGIN INSERT INTO table(field) VALUES (substr(:p,3,1)); END; Auto Commit: On, SQL Mode: Internal, Isolation Level: Committed General error;-3046 POS(319) Invalid char position in string function C

General error; Invalid char position in string function

2005-06-29 Thread Alexey Gaidukov
CREATE DBPROC test(IN p varchar) AS BEGIN INSERT INTO table(field) VALUES (substr(:p,3,1)); END; Auto Commit: On, SQL Mode: Internal, Isolation Level: Committed General error;-3046 POS(319) Invalid char position in string function CREATE DBPROC test(IN p varchar) AS VAR pp varchar

RE: AW: string function

2005-06-22 Thread 王 旭
Thanks! elke From: "Zabach, Elke" <[EMAIL PROTECTED]> To: "? ?" <[EMAIL PROTECTED]>, Subject: AW: string function Date: Wed, 22 Jun 2005 11:07:29 +0200 [EMAIL PROTECTED] wrote > > How can i get the start-position of string "s1" in string "s

AW: string function

2005-06-22 Thread Zabach, Elke
[EMAIL PROTECTED] wrote > > How can i get the start-position of string "s1" in string "s2". > e.g. S1 = name > S2 = myname. > start-position is 2.(Begin position is zero) > As the reference-manual tells us: http://dev.mysql.com/doc/maxdb/en/cd/c300ebb9b011d2a97100a0c9449261/frameset.htm

string function

2005-06-22 Thread 王 旭
How can i get the start-position of string "s1" in string "s2". e.g. S1 = name S2 = myname. start-position is 2.(Begin position is zero) _ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn -- MaxDB Discussion Ma

AW: AW: Can't create function with varchar argument

2005-06-21 Thread Anhaus, Thomas
Alexey Gaidukov wrote : > >Thank you for answer. > >I have one more question. I have two RESOURCE USERS: GIS and REG. > > From GIS user: > >CREATE FUNCTION GIS.TEST(..) RETURN BOOLEAN AS > >GRANT EXECUTE ON TEST TO REG > > From REG user the following comp

Re: AW: Can't create function with varchar argument

2005-06-21 Thread Alexey Gaidukov
Thank you for answer. I have one more question. I have two RESOURCE USERS: GIS and REG. From GIS user: CREATE FUNCTION GIS.TEST(..) RETURN BOOLEAN AS GRANT EXECUTE ON TEST TO REG From REG user the following compiles WITHOUT errors CREATE DBPROC REG.PROC(IN p integer) RETURNS CURSOR AS

AW: Can't create function with varchar argument

2005-06-21 Thread Anhaus, Thomas
Alexey Gaidukov wrote : >Gesendet: Dienstag, 21. Juni 2005 12:57 >An: maxdb@lists.mysql.com >Betreff: Can't create function with varchar argument > > >I'm using 7.6.00.10. > > >CREATE FUNCTION GIS.GET_TARIF ( >p_resid varchar, >p_date date) re

Can't create function with varchar argument

2005-06-21 Thread Alexey Gaidukov
I'm using 7.6.00.10. CREATE FUNCTION GIS.GET_TARIF ( p_resid varchar, p_date date) returns FIXED(20,2) AS VAR f FIXED(20,2); BEGIN select tarif into :f from gis.fullrestype where resid=:p_resid; return f; END; Auto Commit: On, SQL Mode: Internal, Isolation Level: Comm

RE: Webdav, Server Crash (CREATE FUNCTION in 7.5)

2005-06-02 Thread Kirmse, Daniel
: Mittwoch, 1. Juni 2005 10:02 To: maxdb@lists.mysql.com Subject: Webdav, Server Crash Good morning, Yet an another post about Webdav :-) We are trying to find url of files stored into a webdav server to give the user an human readable file path. We created that function to do it : CREATE FUNCTION

Re: Count function produce Wrong results

2005-06-01 Thread Christian Ullrich
Alexei Novakov wrote: > --- Jey Razack <[EMAIL PROTECTED]> wrote: >> DB Version : 7.5.00.24 >> OS Redhat 2.4.22-1.2199 i686 athlon i386 GNU/Linux >> >> Immediately after data insert (COMMIT after each >> insert), the 'COUNT' function on a table (

Re: Count function produce Wrong results

2005-06-01 Thread Alexei Novakov
Hi Jey --- Jey Razack <[EMAIL PROTECTED]> wrote: > DB Version : 7.5.00.24 > OS Redhat 2.4.22-1.2199 i686 athlon i386 GNU/Linux > > Immediately after data insert (COMMIT after each > insert), the 'COUNT' function on a table (2.3 > million records) > ge

RE: Count function produce Wrong results

2005-06-01 Thread Becker, Holger
Jey Razack wrote: > DB Version : 7.5.00.24 > OS Redhat 2.4.22-1.2199 i686 athlon i386 GNU/Linux > > Immediately after data insert (COMMIT after each insert), the > 'COUNT' function on a table (2.3 million records) > generates wrong result (higher than the actu

Count function produce Wrong results

2005-05-31 Thread Jey Razack
DB Version : 7.5.00.24 OS Redhat 2.4.22-1.2199 i686 athlon i386 GNU/Linux Immediately after data insert (COMMIT after each insert), the 'COUNT' function on a table (2.3 million records) generates wrong result (higher than the actual). Select fld1,count(*) from t1 Where ... group b

AW: LOG Function....

2005-05-04 Thread Zabach, Elke
John Singleton wrote: > > Hello all, > > Quick question: Should this work? > > >select LOG(2, 65536) from dual > > Whenever I execute this I get: > > * -5016: Missing delimiter: ) SQLSTATE: 42000 > > Am I doing something wrong? I have to be missing something... > Sometimes I hate JDBC/ODBC

LOG Function....

2005-05-03 Thread John Singleton
Hello all, Quick question: Should this work? >select LOG(2, 65536) from dual Whenever I execute this I get: * -5016: Missing delimiter: ) SQLSTATE: 42000 Am I doing something wrong? I have to be missing something... Thanks! JLS PS: I'm using 7.5.00.19... -- MaxDB Discussion Mailing List F

passing a result table to a function (for doing repetitive actions without rewritting them all the time)

2005-04-20 Thread Filip Sergeys
There are a number of repetitive actions to be taken on result tables in different stored procedures. I wanted to create a function to which I can pass a reference to a result table name. The result table is created in the calling stored procedure with "declare cursor for select for

Re: AW: Function gone/lost

2005-03-03 Thread Dirk Zugenmaier
Hi Thomas, I knew, I had forgotten something... we are currently using MaxDB 7.5.00.23 on Linux Another weired thing: I can create a Function using "create public function foo", I can use it and I can delete it with "drop public function foo". But after dropping it, I cant re

Function gone/lost

2005-03-01 Thread Dirk Zugenmaier
Hi there, hopefully someone can help me: after creating a function as: create public function TESTFUNC2 (FALLNR fixed(16)) RETURNS CHAR(1) AS IF FALLNR < 999 then return 'S'; if FALLNR < 99 then return 'A' else return 'T'; I am unable t

AW: AW: question about ALPHA and SOUNDEX function

2005-02-08 Thread Josu
Hallo, > -Ursprüngliche Nachricht- > Von: Josu [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 7. Februar 2005 16:52 > An: Zabach, Elke > Betreff: Re: AW: question about ALPHA and SOUNDEX function > > ALPHA issue: > > We have an unicode database but the colum

AW: question about ALPHA and SOUNDEX function

2005-02-07 Thread Zabach, Elke
ALPHA () is of no use. > > And other issue . we haven't found what is the soundex function > used and how to customize it because we are spanish speakers! We try > to use sounds and soundex to accomplish: > > Input "Niza" (Nice in spanish) -> Give result

question about ALPHA and SOUNDEX function

2005-02-07 Thread Josu
) It results in an error with the datetype in alpha(->keyword<-), it seems that it doesnt accept literals¿? And other issue . we haven't found what is the soundex function used and how to customize it because we are spanish speakers! We try to use sounds and soundex to accomplish: In

function won't work :-(

2005-01-27 Thread Sven Köhler
Hi, why does this CREATE FUNCTION normal_like (s1 varchar, s2 varchar) RETURNS BOOLEAN AS SET s1 = LOWER(s1); SET s2 = LOWER(s2); IF LENGTH(s1) > LENGTH(REPLACE(s1, s2)) THEN RETURN TRUE ELSE RETURN FALSE; // SELECT normal_like('abc', 'b') FROM sysdba.dual fail with the er

RE: PHP function maxdb_options: Parameter mismatch

2004-12-09 Thread Simenec, Thomas
Dezember 2004 11:06 To: [EMAIL PROTECTED] Subject: PHP function maxdb_options: Parameter mismatch Hi, Using this function as described in http://dev.mysql.com/doc/maxdb/pdf/php_presentation.pdf: maxdb_options($link, MAXDB_UNICODE, TRUE); fails: Warning: maxdb_options() expects exactly 2 par

PHP function maxdb_options: Parameter mismatch

2004-12-09 Thread Hötzel, Jürgen
Hi, Using this function as described in http://dev.mysql.com/doc/maxdb/pdf/php_presentation.pdf: maxdb_options($link, MAXDB_UNICODE, TRUE); fails: Warning: maxdb_options() expects exactly 2 parameters, 3 given in .. By looking in the source (php_maxdb.c) i found out, that this function

MaxDB Create Proc/Function

2004-12-02 Thread David Radcliffe @ Northampton
Can the help-page / document authors please re-visit the pages concerning the creation of stored procedures/functions? The pages are too light on detail, and phrases such as "..control structures are also available for the application programmer. You can program loops or branches..." (in page htt

AW: chr() function strange/unexpected behaviour?

2004-07-26 Thread Zabach, Elke
Filip Sergeys wrote: > > Hello, > > When evaluating a math formula stored in a cell and convert the result > back into a string, The returnvalue is strange > Example: > stored in the cell 7+7 > > SELECT num(substr(nbreplace,1,1)) + num(substr(nbreplace,3,1)) > result: 4 > > SELECT chr(num(sub

Re: chr() function strange/unexpected behaviour?

2004-07-26 Thread Filip Sergeys
Forgot to mention: Maxdb version: 7.5.00.14 OS: linux On Mon, 2004-07-26 at 12:49, Filip Sergeys wrote: > Hello, > > When evaluating a math formula stored in a cell and convert the result > back into a string, The returnvalue is strange > Example: > stored in the cell 7+7 > > SELECT num(substr

chr() function strange/unexpected behaviour?

2004-07-26 Thread Filip Sergeys
Hello, When evaluating a math formula stored in a cell and convert the result back into a string, The returnvalue is strange Example: stored in the cell 7+7 SELECT num(substr(nbreplace,1,1)) + num(substr(nbreplace,3,1)) result: 4 SELECT chr(num(substr(nbreplace,1,1)) + num(substr(nbreplace,3,1

Function & Join

2004-06-29 Thread Matteo Gattoni
. The function Translate_dictionary_key is the following CREATE FUNCTION TRANSLATE_DICTIONARY_KEY(KEY CHAR(100), LANGUAGE FIXED(6,0), DEFAULT_WORD CHAR(100)) RETURNS VARCHAR AS VAR RES VARCHAR(4000); TRY SET RES = DEFAULT_WORD; SELECT N_WORD INTO :RES FROM PSF.DICTIONARY WHERE

AW: CAT_CACHE_SUPPLY in Recursive function

2004-06-28 Thread Anhaus, Thomas
Matteo Gattoni wrote: > HI, > I'm still trying to fetch datas in a recursive function. Waiting for > your responses to my latest email (that follows), I've tried changing the > structure of my algorithm. > Now I use a function that is called in an update st

AW: CAT_CACHE_SUPPLY in Recursive function -> Lock wainting

2004-06-28 Thread Zabach, Elke
Matteo Gattoni wrote: > > HI, > the problem 'General error;-915 POS(375) No more > memory:CAT_CACHE_SUPPLY.' is due to the recursive call of the function. > Deleting it from the body of the function, in this way > > DROP FUNCTION FIX_TREE_D > // > CREATE

CAT_CACHE_SUPPLY in Recursive function -> Lock wainting

2004-06-23 Thread Matteo Gattoni
HI, the problem 'General error;-915 POS(375) No more memory:CAT_CACHE_SUPPLY.' is due to the recursive call of the function. Deleting it from the body of the function, in this way DROP FUNCTION FIX_TREE_D // CREATE FUNCTION FIX_TREE_D( father fixed(9,0), child fixed, prefix CHA

CAT_CACHE_SUPPLY in Recursive function

2004-06-22 Thread Matteo Gattoni
HI, I'm still trying to fetch datas in a recursive function. Waiting for your responses to my latest email (that follows), I've tried changing the structure of my algorithm. Now I use a function that is called in an update statement like: UPDATE PSF.ACTIVITY_RELATIONSHIP set C

RE: ORDER BY in FUNCTION

2004-06-22 Thread Schroeder, Alexander
Labs Berlin > -Original Message- > From: Matteo Gattoni [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 22, 2004 3:31 PM > To: [EMAIL PROTECTED] > Subject: ORDER BY in FUNCTION > > > HI, > I use a select statement in a function; everything goes if >

ORDER BY in FUNCTION

2004-06-22 Thread Matteo Gattoni
HI, I use a select statement in a function; everything goes if the select statement doesn't contain an ORDER BY clause. The error returned is always Syntax error or access violation;-3014 POS(357) Invalid end of SQL statement. If I create a Cursor using the same select Statement, it goes

Re: Function parameters value after another function call

2004-06-21 Thread Joannes Capitanio
It works on 7.5.01 alpha... I had problem using 7.5.00 thanks anyway joannes - Original Message - From: Joannes Capitanio To: [EMAIL PROTECTED] Sent: Saturday, June 12, 2004 11:55 AM Subject: Function parameters value after another function call Hi, We wrote the

AW: Calling a function the db crashes

2004-06-18 Thread Zabach, Elke
Matteo Gattoni wrote: > > Hello, > I'm using MaxDb version 7.5.01.00. > I have a function TO_CHAR2 owned by user PPORTAL that receives a float and > give me back a char value. > > The function is created like this in Oracle mode (the grant in Internal > mode beca

Calling a function the db crashes (more details)

2004-06-16 Thread Matteo Gattoni
Using the same function, in a more complex sql statement, I receive the error General error;-602 System error: Move error. The query is the following. The function is used only in first subquery SELECT (SELECT pportaL.TO_CHAR2(Max(TO_NUMBER(K_KEY) +1)) FROM REGISTRY_TREE), 'app

Calling a function the db crashes

2004-06-16 Thread Matteo Gattoni
Hello, I'm using MaxDb version 7.5.01.00. I have a function TO_CHAR2 owned by user PPORTAL that receives a float and give me back a char value. The function is created like this in Oracle mode (the grant in Internal mode because they don't work in oracle mode) DROP FUNCTION TO_CHAR2

Function parameters value after another function call

2004-06-12 Thread Joannes Capitanio
Hi, We wrote the following function like an entry point for a particular user's permission function: Here's the source of the function... CREATE FUNCTION HASPERMONMENU ( MENUENTRYID CHAR(50), GRANTEDCOMPANYID FIXED(9,0), GRANTEDHUMANRESOURCEID FIXED(9,0), GRANTE

AW: to_date function - Oracle to MaxDB

2004-06-07 Thread Zabach, Elke
> -Ursprüngliche Nachricht- > Von: Gianluca Sensidoni [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 3. Juni 2004 11:33 > An: [EMAIL PROTECTED] > Betreff: to_date function - Oracle to MaxDB > > Hi to all > We are working for a porting from Oracle to MaxDB. In

Re: recursive function

2004-06-07 Thread Joannes Capitanio
I mean something like this: CREATE FUNCTION TEST(VAL INT) RETURNS NUMBER AS BEGIN IF VAL < 5 THEN RETURN TEST(VAL+1) ELSE RETURN VAL; END; it's just an example of course... thanks in advance joannes - Original Message - From: "Zabach, Elke" <[EMAIL PROT

AW: recursive function

2004-06-07 Thread Zabach, Elke
Joannes Capitanio wrote: > > Is it possible to create recursive function inside maxdb? > What do you mean with 'recursive function' ? Are we talking about recursive selects as described here? http://dev.mysql.com/doc/maxdb/en/a7/41ee26605911d3a98800a0c9449261/frameset.htm E

recursive function

2004-06-07 Thread Joannes Capitanio
Is it possible to create recursive function inside maxdb? thanks in advance joannes

to_date function - Oracle to MaxDB

2004-06-03 Thread Gianluca Sensidoni
Hi to all We are working for a porting from Oracle to MaxDB. Inside our project there are a lot of query with data comparison through the to_date function and we use the DD/MM/ date format, on the contrary MaxDB uses the ISO format -MM-DD. We don't want to change the date format a

RE: cpc problem: why "sqlprc" function doesn't work on solaris(64 bit) ?

2004-05-24 Thread Diesing, Burkhard
"sqlprc()" to extract > precision and scale > from NUMBER datatype. Hi, A trace back will be helpful. To prevent you to made a complete debug build you can include the actual implementation of the sqlprc function into your cpc program and compile it with debugging switched on

cpc problem: why "sqlprc" function doesn't work on solaris(64bit) ?

2004-05-22 Thread lu peng
Hello, I migrated an oracle application to maxdb7.5.0.11 for solaris(64bit) and compiled under ORACLE MODE. i got a "bus error" when using "sqlprc()" to extract precision and scale from NUMBER datatype. Anybody help me? _ 免费下载 MSN

RE: DAYNAME function returns null

2004-04-06 Thread Zabach, Elke
news wrote: > > > Hello, all. > > I'm having trouble with a brand new instance of 7.5.0.8. > The DAYNAME > function always returns null (e.g. SELECT DAYNAME(DATE) FROM > SYSDBA.DUAL). > This has not happened with other instances we've created with

DAYNAME function returns null

2004-04-05 Thread Mark Thomas
Hello, all. I'm having trouble with a brand new instance of 7.5.0.8. The DAYNAME function always returns null (e.g. SELECT DAYNAME(DATE) FROM SYSDBA.DUAL). This has not happened with other instances we've created with this version. Does anyone know how I can track this down

RE: user-defined-function in insert-select (was:CHR(NUM()) )

2004-03-01 Thread Zabach, Elke
; Hmmm ! instance crashes at early tries... > > For now I tried some insert using this dbfunction: > > INSERT INTO TABLENAME > VALUES > ((SELECT FUNC_IDSOCIETE ('val1', 'val2') FROM DUAL), other values...) > > and error message is: 'unknown table

RE: GRANT EXECUTE ON FUNCTION

2004-02-27 Thread Zabach, Elke
news [mailto:[EMAIL PROTECTED] Behalf Of Kostadin > Bajalcaliev wrote: > Sent: Freitag, 27. Februar 2004 01:30 > To: [EMAIL PROTECTED] > Subject: GRANT EXECUTE ON FUNCTION > > > I want to use functions in MaxDB, but it is not clear how to > grant execute > privil

GRANT EXECUTE ON FUNCTION

2004-02-26 Thread Kostadin Bajalcaliev
I want to use functions in MaxDB, but it is not clear how to grant execute privilege. For example a simple next_num function can be created as CREATE FUNCTION NEXT_NUM (N INTEGER) RETURNS INTEGER AS RETURN N + 1; But GRANT EXECUTE ON NEXT_NUM TO PUBLIC ---> General error;-4016 POS

Re: A non-existing function call doesn't generate any error

2004-02-10 Thread Marcin P
you know, that I've noticed > >SAP DB is acting really strange when non-existing function > >is used in SELECT clause. > >For example: > >SELECT SILLY_NAME_OF_FUNCTION(MY_COLUMN) FROM MY_TABLE, > >returns all rows from MY_TABLE for column MY_COLUMN. > >IM

RE: A non-existing function call doesn't generate any error

2004-02-10 Thread Anhaus, Thomas
Marcin wrote : >Hello, >I just would like to let you know, that I've noticed >SAP DB is acting really strange when non-existing function >is used in SELECT clause. >For example: >SELECT SILLY_NAME_OF_FUNCTION(MY_COLUMN) FROM MY_TABLE, >returns all rows from MY_TABLE f

RE: A non-existing function call doesn't generate any error

2004-02-10 Thread Zabach, Elke
news wrote: > > Hello, > I just would like to let you know, that I've noticed > SAP DB is acting really strange when non-existing function > is used in SELECT clause. > For example: > SELECT SILLY_NAME_OF_FUNCTION(MY_COLUMN) FROM MY_TABLE, > returns all rows from

A non-existing function call doesn't generate any error

2004-02-10 Thread Marcin P
Hello, I just would like to let you know, that I've noticed SAP DB is acting really strange when non-existing function is used in SELECT clause. For example: SELECT SILLY_NAME_OF_FUNCTION(MY_COLUMN) FROM MY_TABLE, returns all rows from MY_TABLE for column MY_COLUMN. IMHO some error that the

RE: Support for older releases (was: really need long varchar sea rch function ...)

2004-01-23 Thread Edson Carlos Ericksson Richter
Yes, I in accord with you $2K for support on that database is wonderfull. Suggestions: 1) Work with the community, not against us. Sell support in reasonable prices (I think they are not so bad today - I need to re-check), and don't charge for theese unstable builds. 2) Put the features all of u

RE: Support for older releases (was: really need long varchar sea rch function ...)

2004-01-23 Thread Kevin . Wilson
ginal Message- From: Edson Carlos Ericksson Richter [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 12:25 PM To: MaxDB Subject: Re: Support for older releases (was: really need long varchar search function ...) Look you all, the idea is forcing all to buy licences from MySQL. Just dro

Re: Support for older releases (was: really need long varchar search function ...)

2004-01-23 Thread Edson Carlos Ericksson Richter
Look you all, the idea is forcing all to buy licences from MySQL. Just drop out this idea. People want buy real support for the version they want to run. I'll never upgrade to instable 7.5 version (event with all the known problems 7.4 has today). 7.5 (AFAIK) hasn't a changes list avaliable to us.

Re: Support for older releases (was: really need long varchar search function ...)

2004-01-23 Thread Jean-Michel OLTRA
Le vendredi 23 janvier 2004, Dittmar, Daniel a écrit... bonjour, > We generally do support older releases for a long time. But MySQL AB is starting to > build a business around MaxDB, and this would be more difficult if there is still > the competition of SAP DB, which places less restr

  1   2   >