/*
**    Name: copy.c
**
**    Date: Thu Jan 17 12:02:13 2002
**
*/

#include "ODBC.h"
#include "rmamem.h"
#include <string.h>
#include <stdio.h>

void copy_bound_parameters(int stmt)
    {
    int index;

    for (index = 0;index < ODBCLIBMAXBOUNDPARAMETERS;index++)
        {
        if (odbcquerytype.boundparameters[index].stmt == stmt &&
            odbcquerytype.boundparameters[index].rmadata != 0 &&
            odbcquerytype.boundparameters[index].data != 0)
            {
            memcpy((void *)odbcquerytype.boundparameters[index].data,
                   (void *)odbcquerytype.boundparameters[index].rmadata,
                   odbcquerytype.boundparameters[index].size);
            }
        }
    }
