FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 11 times
- Contact:
Re: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
Both Query() and RowSet() are two names for the same method.
We just prefer to use RowSet name. You may use the name you like to use.
We just prefer to use RowSet name. You may use the name you like to use.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- goosfancito
- Posts: 1956
- Joined: Fri Oct 07, 2005 7:08 pm
Re: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
Is there a wiki that explains how to use fwconnect so I can see what is needed for an embedded mariadb connection?
thanks
thanks
- reinaldocrespo
- Posts: 986
- Joined: Thu Nov 17, 2005 5:49 pm
- Location: Fort Lauderdale, FL
- Been thanked: 2 times
Re: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
Hello group;
Is there a pdf or wiki that documents this MariaDB class? I would like something that describes the whole class without having to read each post on the forum.
And one other thing; is this an update to the TDolphin class or a whole different class altogether?
Thank you.
Is there a pdf or wiki that documents this MariaDB class? I would like something that describes the whole class without having to read each post on the forum.
And one other thing; is this an update to the TDolphin class or a whole different class altogether?
Thank you.
Re: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
Hi Reinaldo,
Some time ago I started to collect all Mr Rao tips about FWH MySql in a chm file. You can download it through the link bellow:
https://drive.google.com/file/d/1DnNBBt ... sp=sharing
Some time ago I started to collect all Mr Rao tips about FWH MySql in a chm file. You can download it through the link bellow:
https://drive.google.com/file/d/1DnNBBt ... sp=sharing
- Compuin
- Posts: 1259
- Joined: Tue Dec 28, 2010 1:29 pm
- Location: Quebec, Canada
- Has thanked: 21 times
- Been thanked: 4 times
- Contact:
Re: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
Hello,vilian wrote: Fri Mar 21, 2025 7:03 pm Hi Reinaldo,
Some time ago I started to collect all Mr Rao tips about FWH MySql in a chm file. You can download it through the link bellow:
https://drive.google.com/file/d/1DnNBBt ... sp=sharing
It doesn't work.
Regards
FWH 25.01 | Hbmk2 32/64 Bits (Build 19.29.30133) | Microsoft Visual C 32 Bits | MySql 8.0.24 32/64 Bits | VS Code
- reinaldocrespo
- Posts: 986
- Joined: Thu Nov 17, 2005 5:49 pm
- Location: Fort Lauderdale, FL
- Been thanked: 2 times
Re: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
I need some help executing certain SQLs using this class. Below is the code to one such instance where the class returns an error.
The sql executes fine using HeidiSQL connected to the same db and creates the function.
I have tried to execute the sql using Execute() and QueryResult() at no avail.
Can someone help?
Thank you.
Code: Select all | Expand
DELIMITER //
CREATE FUNCTION CurrentLease(
pPropID CHAR( 25 ), pDate DATE
)
RETURNS CHAR( 13 ) DETERMINISTIC
BEGIN
DECLARE cLease CHAR( 13 ) DEFAULT '' ;
SELECT leaseID INTO cLease
FROM leases
WHERE propertyID = pPropID
AND StartDate <= pDate
AND ( IsMtoM OR EndDate IS NULL OR EndDate >= pDate )
ORDER BY startdate DESC
LIMIT 1 ;
RETURN( cLease ) ;
END //
DELIMITER ;
I have tried to execute the sql using Execute() and QueryResult() at no avail.
Can someone help?
Thank you.
- cnavarro
- Posts: 6604
- Joined: Wed Feb 15, 2012 8:25 pm
- Location: España
- Has thanked: 6 times
- Been thanked: 8 times
Re: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
Mira a ver si esto te ayuda
viewtopic.php?t=33280
viewtopic.php?t=33280
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
- reinaldocrespo
- Posts: 986
- Joined: Thu Nov 17, 2005 5:49 pm
- Location: Fort Lauderdale, FL
- Been thanked: 2 times
Re: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
Querido amigo mio;
Muchas muchas gracias.
That thread helped me see the problem.
So far, everywhere I have read and even when testing scripts with HeidiSQL, I must use the clase "DELIMITER" to change the standard delimiter from ; to something else, like //. That way a ; does not ends the script. This is stupid to me, but it is a MySQL rule non the less; as per all documentation I have read.
However, with the fw client being used for MariaDB (and I suspect MySQL), the clause "DELIMITER" causes a syntax error. That was all the problem.
I realized this when reading your reference thread where Mr. Rao shows a script that creates a function and he is not using the clause "DELIMITER'.
This brings me to the question... why? I would expect there is a standard.
Well, what really matters to me is that is a problem solved and thank you very much Cristobal.
Muchas muchas gracias.
That thread helped me see the problem.
So far, everywhere I have read and even when testing scripts with HeidiSQL, I must use the clase "DELIMITER" to change the standard delimiter from ; to something else, like //. That way a ; does not ends the script. This is stupid to me, but it is a MySQL rule non the less; as per all documentation I have read.
However, with the fw client being used for MariaDB (and I suspect MySQL), the clause "DELIMITER" causes a syntax error. That was all the problem.
I realized this when reading your reference thread where Mr. Rao shows a script that creates a function and he is not using the clause "DELIMITER'.
This brings me to the question... why? I would expect there is a standard.
Well, what really matters to me is that is a problem solved and thank you very much Cristobal.
- cnavarro
- Posts: 6604
- Joined: Wed Feb 15, 2012 8:25 pm
- Location: España
- Has thanked: 6 times
- Been thanked: 8 times
Re: FWH 16.08 : Built-in MySql/MariaDB functionality (Updated )
Dear Reinaldo, thanks
This is one of the most valuable posts on this forum.
The explanation is wonderful, but above all, Mr. Rao's implementation of STORE PROCEDURES (and use of CALL) in his fabulous class developed for MySQL/MariaDB is magnificent.
The differences between the standard and Fivewin's implementation lie in the development Mr. Rao did in his class, as always, to try to make it easier for users.
Best regards and a hug.
This is one of the most valuable posts on this forum.
The explanation is wonderful, but above all, Mr. Rao's implementation of STORE PROCEDURES (and use of CALL) in his fabulous class developed for MySQL/MariaDB is magnificent.
The differences between the standard and Fivewin's implementation lie in the development Mr. Rao did in his class, as always, to try to make it easier for users.
Best regards and a hug.
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces