# Using stored procedures on MySQL version \< 5.5.3

**URL:** <https://community.dreamfactory.com/t/using-stored-procedures-on-mysql-version-5-5-3/3744>\
**Category:** Connecting to SQL\
**Created:** [April 1, 2017, 5:26pm UTC](https://community.dreamfactory.com/t/using-stored-procedures-on-mysql-version-5-5-3/3744 "2017-04-01T17:26:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![efunneko](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@efunneko](https://community.dreamfactory.com/u/efunneko)\
**Post date:** [April 1, 2017, 5:26pm UTC](https://community.dreamfactory.com/t/using-stored-procedures-on-mysql-version-5-5-3/3744/1 "2017-04-01T17:26:43Z")

</div>

I am trying to call a stored procedure on mysql version 5.0.77. When I try to do a simple call of the procedure, I get the following error:

> SQLSTATE[42S22]: Column not found: 1054 Unknown column ‘DATA\_TYPE’ in ‘field list’ (SQL: SELECT ROUTINE\_NAME, DATA\_TYPE FROM INFORMATION\_SCHEMA.ROUTINES WHERE ROUTINE\_TYPE = :type AND ROUTINE\_SCHEMA = :schema)",

I believe that this is because my version of MySQL does not have the column ‘DATA\_TYPE’ in the ROUTINES table. Is there anyway to get around this? I need to use procedures to fulfill my application’s needs and upgrading the DB is not an easy option right now.

---

<div class="post-metadata">

**Author:** ![efunneko](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@efunneko](https://community.dreamfactory.com/u/efunneko)\
**Post date:** [April 1, 2017, 6:58pm UTC](https://community.dreamfactory.com/t/using-stored-procedures-on-mysql-version-5-5-3/3744/2 "2017-04-01T18:58:09Z")

</div>

I looked around the source code and it seems that DATA\_TYPE is hard-coded into the source with no obvious options for using an older DB schema.

If this is the case, it looks like my only two options are to forget about using DF until I can get the DB upgraded (perhaps never) or resort to some local hackery of DF to make it ignore the DATA\_TYPE field. It’s too bad because for store procedures, that field is supposed to always be NULL anyway.

---

<div class="post-metadata">

**Author:** ![efunneko](https://avatars.discourse-cdn.com/v4/letter/e/ac8455/32.png) [@efunneko](https://community.dreamfactory.com/u/efunneko)\
**Post date:** [April 2, 2017, 6:04pm UTC](https://community.dreamfactory.com/t/using-stored-procedures-on-mysql-version-5-5-3/3744/3 "2017-04-02T18:04:04Z")

</div>

I was able to get this to work by coding my own versions of findRoutineNames and loadParamaters that were specific to MySQL 5.0. They make use of the mysql.proc table to get additional information that is not available in the INFORMATION\_SCHEMA table in 5.0.

---

<div class="post-metadata">

**Author:** ![sangeetha](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@sangeetha](https://community.dreamfactory.com/u/sangeetha)\
**Post date:** [May 13, 2019, 9:21am UTC](https://community.dreamfactory.com/t/using-stored-procedures-on-mysql-version-5-5-3/3744/4 "2019-05-13T09:21:36Z")

</div>

Hi, can you pls share the info on how you did that ? I am new to dream factory. Trying to access MySQL version 5.1 and getting the same error.
